The MU forums have moved to WordPress.org

mu-plugins folder (1 post)

  1. levi.putna
    Member
    Posted 16 years ago #

    I'm trying to build some efficiency into my plugin,s and was wondering how the mu-plugins directory is loaded?

    - Is the entire directory (every script) loaded every page load eg, http://www.myurl.com/home and http://www.myurl/wp-admin?

    - If I have a plugin that is only admin side if I place it in the mu-plugin directory will it get loaded every time a front end page is loaded?

    If I do something like this in the plugin root file

    add_action('admin_head', 'run_plugin');

    function run_plugin(){
    include('plugin_name.php');
    }

    Will 'plugin_name.php' still get loaded when the home page is loaded? eg, http://www.myurl.com

    Thanks,
    Levi

About this Topic

  • Started 16 years ago by levi.putna