WordPress.org

Ready to get started?Download WordPress

Ideas

Avoid loading certain plugins if not in the admin panel

  1. burtonkent
    Member

    12345

    I was just looking at the code, and see that -all- active plugins are loaded every time WordPress runs. This means that certain plugins only used when the admin is accessing the back-end are also being loaded for every page load. Some examples:
    WPLite
    Deactivate Visual Editor
    Role Manager
    Ask Apache
    etc.

    It seems that there should be a way for plugin authors to specify that it's an admin-only plugin, so get_option('active_plugins'); doesn't return it. Perhaps there could be a get_option('menu_plugins') which is checked on admin page loads.

    At the same time, I would suggest having a get_option('wpmu_plugin') queue as well (the code would be very similar). There are plugins that I'd like to make available only to is_site_admin(), but putting it in mu-plugins only means it's 'activated' by default for every page load. It has nothing to do with whether the plugin is for the wpmu admin or not. Plugin Commander would be a great candidate for this.

    This is related to the "Make It Faster"
    http://wordpress.org/extend/ideas/topic.php?id=127 Right now, every active plugin slows down WordPress, regardless of whether it's used or not.

    Posted: 5 years ago #
  2. adubeezi
    Member

    12345

    Awsome idea burtonkent, I totally suport this, top rated by me :)

    Posted: 5 years ago #
  3. David Sader
    Member

    12345

    http://codex.wordpress.org/Conditional_Tags

    Would is_admin() at the top of the plugin do anything?

    Posted: 5 years ago #
  4. David Sader
    Member

    12345

    This mu-plugin creates a new folder to execute plugins if "is_admin()" only:
    http://wpmu.org/wpmu-administration-plugins/

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    4 Votes
  • Status

    Duplicate of another idea