Title: Disable Plugins
Author: kynatro
Published: <strong>2011年5月24日</strong>
Last modified: 2014年6月7日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/disable-plugins.svg)

# Disable Plugins

 作者: [kynatro](https://profiles.wordpress.org/kynatro/)

[ダウンロード](https://downloads.wordpress.org/plugin/disable-plugins.zip)

 * [詳細](https://ja.wordpress.org/plugins/disable-plugins/#description)
 * [レビュー](https://ja.wordpress.org/plugins/disable-plugins/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/disable-plugins/#installation)
 * [開発](https://ja.wordpress.org/plugins/disable-plugins/#developers)

 [サポート](https://wordpress.org/support/plugin/disable-plugins/)

## 説明

One of WordPress’ biggest bottlenecks is that it loads every single plugin that

is active on your WordPress installation on every single post/page no matter whether
they are needed for that post/page or not. This plugin will allow you to create 
simple rewrite rules to exclude a plugin or plugins from any URI pattern match. 
This is a great way to reduce the memory footprint, SQL queries run at page load,
load times, and improve site response speed.

This is NOT a normal WordPress plugin, but an _mu_ (must use) plugin and requires

special installation instructions. Please see the [installation section](https://wordpress.org/extend/plugins/disable-plugins)
for more information.

**Requirements:** PHP5+, WordPress 2.9.x+

## インストール

Create a `/wp-content/mu-plugins/disable-plugins-rules` directory if the plugin

has not created one for you already. Create a rules file for each site your WordPress
installation is running, naming the file after the host name for the site followed
by a `.rules` extension. For example `mywordpresssite.com.rules` would be a rules
set for `mywordpresssite.com`.

Populate your rules using regular expression pattern matches and plugin base
 names
on each line of your rules file. For example, to exclude the _Hello Dolly_ and _Akisment_
plugins from being loaded on your home page, you would write a rules file that looks
like:

    ```
    # Prevent the Hello Dolly plugin from loading on the home page
    ^\/$ hello
    # Prevent the Akisment plugin from loading on the home page
    ^\/$ akismet
    ```

You will need to write a rule for each plugin that will be excluded for each
 pattern
that you wish to exclude that plugin from. C style comments are allowed in your 
rules file to document your rules.

## FAQ

  Q. How do I format my exception rule?

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.

  Q. Will this work on a multisite installation?

This plugin is made to run with multisite in mind, but it has not been tested with
a multisite installation yet.

  Q. How do you write regular expressions and do you have any good tools for writing
them?

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:

 * Good information on regular expressions – [Regular Expressions](http://www.regular-expressions.info/)
 * A nice cheat sheet for writing regular expressions – [Regular Expressions Cheat Sheet](http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/)
 * A great library of regular expression patterns – [Regular Expression Library](http://regexlib.com/)
 * An excellent tool for testing patterns – [RegexPal Testing Tool](http://www.regexpal.com/)

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.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Disable Plugins はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ kynatro ](https://profiles.wordpress.org/kynatro/)

[“Disable Plugins” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/disable-plugins)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/disable-plugins/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/disable-plugins/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/disable-plugins/)を [RSS](https://plugins.trac.wordpress.org/log/disable-plugins/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.1

 * Update compatible to version number

#### 1.0.0

 * Initial release

## メタ

 *  バージョン **1.0.1**
 *  最終更新日 **12年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 2.9.0またはそれ以降 **
 *  検証済み最新バージョン: **3.9.40**
 *  言語
 * [English (US)](https://wordpress.org/plugins/disable-plugins/)
 * タグ
 * [disable plugin](https://ja.wordpress.org/plugins/tags/disable-plugin/)[mu plugin](https://ja.wordpress.org/plugins/tags/mu-plugin/)
   [plugin manager](https://ja.wordpress.org/plugins/tags/plugin-manager/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/disable-plugins/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/disable-plugins/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/disable-plugins/reviews/)

## 貢献者

 *   [ kynatro ](https://profiles.wordpress.org/kynatro/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/disable-plugins/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://www.kynatro.com/)