{"id":13387,"date":"2011-05-24T15:02:29","date_gmt":"2011-05-24T15:02:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/disable-plugins\/"},"modified":"2014-06-07T15:41:49","modified_gmt":"2014-06-07T15:41:49","slug":"disable-plugins","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/disable-plugins\/","author":5958856,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"3.9.40","requires":"2.9.0","requires_php":"","requires_plugins":"","header_name":"Disable Plugins","header_author":"digital-telepathy","header_description":"","assets_banners_color":"","last_updated":"2014-06-07 15:41:49","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.kynatro.com\/","header_plugin_uri":"http:\/\/www.hellobar.com\/","header_author_uri":"http:\/\/www.dtelepathy.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":4196,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[23890,3812,23889,23888,23891],"plugin_category":[],"plugin_contributors":[80771],"plugin_business_model":[],"class_list":["post-13387","plugin","type-plugin","status-publish","hentry","plugin_tags-disable-plugin","plugin_tags-mu-plugin","plugin_tags-plugin-filtering","plugin_tags-plugin-manager","plugin_tags-specific-page","plugin_contributors-kynatro","plugin_committers-kynatro"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/disable-plugins.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>One of WordPress' biggest bottlenecks is that it loads every single plugin that \nis active on your WordPress installation on every single post\/page no matter \nwhether they are needed for that post\/page or not. This plugin will allow you \nto create simple rewrite rules to exclude a plugin or plugins from any URI \npattern match. This is a great way to reduce the memory footprint, SQL queries \nrun at page load, load times, and improve site response speed.<\/p>\n\n<p>This is NOT a normal WordPress plugin, but an <em>mu<\/em> (must use) plugin and requires\nspecial installation instructions. Please see the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/disable-plugins\">installation section<\/a> for more\ninformation.<\/p>\n\n<p><strong>Requirements:<\/strong> PHP5+, WordPress 2.9.x+<\/p>\n\n<!--section=installation-->\n<p>Create a <code>\/wp-content\/mu-plugins\/disable-plugins-rules<\/code> directory if the plugin\nhas not created one for you already. Create a rules file for each site your\nWordPress installation is running, naming the file after the host name for\nthe site followed by a <code>.rules<\/code> extension. For example <code>mywordpresssite.com.rules<\/code>\nwould be a rules set for <code>mywordpresssite.com<\/code>.<\/p>\n\n<p>Populate your rules using regular expression pattern matches and plugin base\nnames on each line of your rules file. For example, to exclude the <em>Hello Dolly<\/em>\nand <em>Akisment<\/em> plugins from being loaded on your home page, you would write \na rules file that looks like:<\/p>\n\n<pre><code># Prevent the Hello Dolly plugin from loading on the home page\n^\\\/$ hello\n# Prevent the Akisment plugin from loading on the home page\n^\\\/$ akismet\n<\/code><\/pre>\n\n<p>You will need to write a rule for each plugin that will be excluded for each\npattern that you wish to exclude that plugin from. C style comments are \nallowed in your rules file to document your rules.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Q. How do I format my exception rule?<\/dt>\n<dd><p>This is pretty easy to do, just two pieces to each line - the regular expression pattern and the plugin's basename (usually the folder or file name of the plugin). See the installation section for an example of how this might look.<\/p><\/dd>\n<dt>Q. Will this work on a multisite installation?<\/dt>\n<dd><p>This plugin is made to run with multisite in mind, but it has not been tested with a multisite installation yet.<\/p><\/dd>\n<dt>Q. How do you write regular expressions and do you have any good tools for writing them?<\/dt>\n<dd><p>If you're asking this question, you may want to consider a different plugin to help manage your site's plugin use, but you can check out the following resources:<\/p>\n\n<ul>\n<li>Good information on regular expressions - <a href=\"http:\/\/www.regular-expressions.info\/\">Regular Expressions<\/a><\/li>\n<li>A nice cheat sheet for writing regular expressions - <a href=\"http:\/\/www.addedbytes.com\/cheat-sheets\/regular-expressions-cheat-sheet\/\">Regular Expressions Cheat Sheet<\/a><\/li>\n<li>A great library of regular expression patterns - <a href=\"http:\/\/regexlib.com\/\">Regular Expression Library<\/a><\/li>\n<li>An excellent tool for testing patterns - <a href=\"http:\/\/www.regexpal.com\/\">RegexPal Testing Tool<\/a><\/li>\n<\/ul>\n\n<p>Unfortunately, I really can't do much support for this plugin, but time permitting I will continue to develop it. I am considering an admin interface for easier management, but thats down the road a bit.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update compatible to version number<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Manage which plugins load on what page with simple regular expression pattern matches similar to an Apache .htaccess file","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13387"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kynatro"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13387"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13387"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13387"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13387"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13387"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}