How to use a Must-Use plugin to hide a regular one and to hide itself?

Apparently, there’s no way to remove one plugin from the Must-Use list… But then, found a filter that does even better: show_advanced_plugins will completely hide the sight of the Must-Use plugins. After all, if you’re trying to hide something of this nature, then hide it all… It’s inside the class WP_Plugins_List_Table and takes two arguments: … Read more

Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?

EDIT: this solution is not a best-practice. Please use the solution submitted by Nathan below! Use the WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL constants 🙂 function load_my_alerts(){ wp_register_script( ‘my_alerts’, WPMU_PLUGIN_URL . ‘/js/alerts.js’, array( ‘jquery’ ) ); wp_enqueue_script( ‘my_alerts’ ); } add_action(‘admin_enqueue_scripts’, ‘load_my_alerts’);

Must-use plugins autoloader: How to use get_plugins() correctly?

‘get_plugins’ is intended to be used only with regular plugins, and also it looks at plugin headers, and return only plugins that have valid one, like /* Plugin Name: A plugin */ However mu-plugins can work even without that headers. Also consider that with WP 3.9 was introduced the function wp_register_plugin_realpath that should be used … Read more

How to prevent redirect to ‘About’ after core upgrade?

Don’t remove the action but add your own before it. If you remove the action you will never get the message saying it was upgraded successfully. Here you can provide your own info on what to do next. function tp_dont_redirect_to_about_wordpress( $new_version ) { global $wp_version, $pagenow, $action; if ( version_compare( $wp_version, ‘3.4-RC1’, ‘>=’ ) ) … Read more