Can I add custom css to an mu-plugin?

You can actually put a directory for your style sheet right in the mu-plugins directory. I called mine “my-companies-assets”. The tricky part is calling your styles into your mu-plugin. In your main MU plugin file… // Setup MY AWESOME MU plugin url // This will help if you switch to multisite some day if (is_multisite()) … Read more

How can I replace the search results displayed by WordPress?

You can use template_include filter hook to check if the current call is a search call and if so include your own template in which you can do what ever you want : add_filter(‘template_include’,’my_custom_search_template’); function my_custom_search_template($template){ global $wp_query; if (!$wp_query->is_search) return $template return dirname( __FILE__ ) . ‘/my_search_template.php’; }

Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins

I guess this would be of better use as a mu-plugin. EDIT: Now available as drop & play MU-Plugin. Also disables the »Theme« editor. <?php ! defined( ‘ABSPATH’ ) AND exit; /** Plugin Name: Disable »Theme/Plugin Editor« */ if ( ! class_exists( ‘disable_admin_editor’ ) ) { add_action( ‘plugins_loaded’, array( ‘disable_admin_editor’, ‘init’ ) ); class disable_admin_editor … Read more