Tag Info

New answers tagged

0

It's simply the wrong endpoint. The admin_post_* hook and its admin_post_nopriv_* counterpart is not fired for any admin page with the appropriate action request variable set, it only triggers for requests hitting wp-admin/admin-post.php. Try https://test.local/wp-admin/admin-post.php?action=test instead. I should add that using admin-post.php for ...


0

Not entirely sure I understand what you are doing but would it be feasible to add an option (add_option) during the CPT post publish and then check for the existance of that option and if there, display the notice. Within the function you have to display the notice, you could also remove the option to stop it showing again. Alternatively add user meta and ...


0

Add Custom Class In Custom Column custom posttype / post/page/ and user list Table . This is a Simple Please Try This Add column name like "purchased-leads num " space between for separate class. Add Add "num" Class in Column And Auto Text align Center like Post count , no need Any Other css . add_filter( 'manage_users_columns', ...


0

The solution is to edit /wp-admin/admin-header.php and search for "device-width" and change it to something like this: <meta name="viewport" content="width=1024"> This allows you to see the unadulterated WordPress admin interface on your tablet or phone. No more jumbo-size letters.


1

You can have a single login point which you can redirect to from all sites in the network, and then redirect back to the subsite after a successful login. We did something similar for the WordCamp.org network: http://meta.svn.wordpress.org/sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-global-login.php This will probably only work for ...


1

This is not possible, since the output of your gtp_users_table_content function for the manage_users_custom_column action hook is printed within predefined <td></td> elements. However, you can put a simple div with a class around your output: // Add users table lead purchase column content add_action( 'manage_users_custom_column', ...


0

Try this: function options_instructions_example() { global $my_admin_page; $screen = get_current_screen(); if ( is_admin() && ($screen->id == 'custom_post_type_name') ) { function add_content_after_editor() { global $post; $id = $post->ID; echo '<div class="postbox" ...


0

Starting with Wordpress 4.1 (maybe even earlier, I don't know) this functionality is built-in (no need for a plugin). Simply: Download the language pack of your choice from http://wpcentral.io/internationalization/ extract the content into wp-content/languages (create the languages folder if it does not exist yet) Done! Logon as the editor who needs a ...



Top 50 recent answers are included