How can I allow core, plugin, theme update checks only for selected admins?
I think you should better create a custom role for “administrators-non-administrators” without the update_core, update_plugins and update_themes capabilities.
I think you should better create a custom role for “administrators-non-administrators” without the update_core, update_plugins and update_themes capabilities.
You can do a simple is_admin() check before dequeuing your script like below: Code: add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 ); function my_deregister_javascript() { if ( !is_admin() ) wp_deregister_script( ‘wp-embed’ ); } }
If we do this in the browser dev tools console: var b = wp.data.select(“core/editor”); We can then inspect the b variable to see what functions it exposes via autocomplete, or debugging tools. Notice, I didn’t call getBlocks(), the post title has never been a part of the post content, why would that change now? A … Read more
Upgrade to PHP 5.2 or above The Error Message you see is by WordPress. It’s very misleading what it basically saying is, that you need a PHP version >= 5.2 for that feature to work. Please look into your operating systems documentation or contact technical support on how to update your PHP version. For CentOS, … Read more
Had you just overwrote site from backup? Not a good way since it may easily leave broken files or even backdoors. It is best to erase site completely, then copy clean WordPress archive and copy of your files from backup there. If possible it’s best to restore database from pre-hack backup as well. If these … Read more
Short: yes you can do that. to be able to see all blog posts the default editor role can manage to see all posts be able to post in the blog again the default editor role can manage to see all posts be able to add new “portfolio galleries” and “portfolio pages” and have them … Read more
Just illustrating this in full effect here with the filters and functions for both the adding of custom column and testing for excerpt existence. Note, I’ve purposely ripped the guts out of has_excerpt to show you in effect what is occurring under the hood. You can use !has_excerpt in its place. add_filter(‘the_excerpt’, ‘no_excerpt’); add_filter(‘manage_posts_columns’ , … Read more
wp_is_mobile should be the switch you need, but you may be talking about a lot of edits to a lot of components to do what you describe. I don’t know enough about the rest of your code to guess at what kinds of things you would need.
the plugin is causing a 500 error but php debugging is turned off. The fix it, FTP into the server and remove the plugin then your admin will be back up and running.
So you have your code in a class, let’s say it looks like this… <?php class WPSE82245 { public function action_init() { // do stuff } } Now you try to hook it into something… add_action(‘init’, ‘array(‘WPSE82245’, ‘action_init’)); What happens is when the init hook fires, WordPress tries to call your method. It would similar … Read more