Title: Plugin Logic
Author: simon_h
Published: <strong>2014 年 3 月 18 日</strong>
Last modified: 2025 年 12 月 5 日

---

搜索插件

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

# Plugin Logic

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

[下载](https://downloads.wordpress.org/plugin/plugin-logic.1.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/plugin-logic/#description)
 * [评价](https://cn.wordpress.org/plugins/plugin-logic/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/plugin-logic/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/plugin-logic/#developers)

 [支持](https://wordpress.org/support/plugin/plugin-logic/)

## 描述

A possibility to increase the speed of your WordPress page is to deactivate Plugins
on pages,
 where they are not needed. This Plugin allows you to do this on a easy
way. So you can reduce the amount of JavaScript and CSS files which are loaded and
SQL queries run at page load.

## 屏幕截图

[⌊The settings page.⌉⌊The settings page.⌉[

The settings page.

[⌊Options for the behavior on dashbord.⌉⌊Options for the behavior on dashbord.⌉[

Options for the behavior on dashbord.

## 安装

 1. Install the Plugin
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create your own rules on the Plugin Logic options page

## 常见问题

### Q. How do I format my rules?

Use “http://” or “https://” at the beginning to define urls.
 Words without these
keywords at the beginning are interpreted as normal words. They will be searched
in the requested url. To separate your rules use the comma sign. To use regex it
is necessery to wrap a rule with quotations like this: “wordpress\/\?p=[1-7]$”

## 评价

![](https://secure.gravatar.com/avatar/d90678101a93de4de1f30c161066d6bd6729db289eb1cd17b7d73ebfaaadfd70?
s=60&d=retro&r=g)

### 󠀁[Best performance plugin!](https://wordpress.org/support/topic/best-performance-plugin-6/)󠁿

 [marxveix](https://profiles.wordpress.org/marxveix/) 2025 年 12 月 6 日

Best performance plugin for all wordpress plugins, its enables/disables plugins 
only there, where you need them. Active users should be a lot more, 10 000 or 100
000 for sure. Thank you! Thank you for updating the Plugin Logic, its great, its
amazing! Thank you again!

![](https://secure.gravatar.com/avatar/4a49b9d6b343501b8fba8917f17747b91c90138c0ea56dfc6e42a1d93e00c6be?
s=60&d=retro&r=g)

### 󠀁[Disables plugin completely](https://wordpress.org/support/topic/disables-plugin-completely/)󠁿

 [davidjmorin](https://profiles.wordpress.org/davidjmorin/) 2024 年 7 月 8 日 1 
回复

This plugin could be great. This disables the plugin and never reactivates it. So
when a user revisits the page the plugin is not active. So much potential. It should
just deque the plugin instead of disabling or deactivating.

![](https://secure.gravatar.com/avatar/408d5d1926d0a05ff84c04b2916fbe10e536f32a15e2e993026e207bc574aa73?
s=60&d=retro&r=g)

### 󠀁[A Speed Boost Savior!](https://wordpress.org/support/topic/a-speed-boost-savior/)󠁿

 [ericpulguin](https://profiles.wordpress.org/ericpulguin/) 2023 年 9 月 20 日

Plugin Logic a turbocompressé ma page d’accueil, en particulier lorsqu’il s’agit
de plugins monopolisant les ressources comme « Facebook for WooCommerce ». C’est
un must pour tous ceux qui cherchent à optimiser la vitesse de leur site. Bravo 
aux développeurs!

![](https://secure.gravatar.com/avatar/beffc275bd43438ab0c1cd47f94fc22c1e396e327fa38be41bcc489bb8e19ce2?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-7534/)󠁿

 [KJ](https://profiles.wordpress.org/kennjordan/) 2020 年 8 月 5 日

Works perfectly with the latest version of WordPress 5.4.2 and Thesis 2.9.14 and
Focus 0.9.8

![](https://secure.gravatar.com/avatar/72591517d328443bddcef5f39dd9db466a769c13daa1f1fdf0cfef001268d819?
s=60&d=retro&r=g)

### 󠀁[excellent- and works with 5.4.2](https://wordpress.org/support/topic/excellent-and-works-with-5-4-2/)󠁿

 [zinkab](https://profiles.wordpress.org/zinkab/) 2020 年 7 月 3 日

works with the latest version of wordpress 5.4.2 I am surprised that not that many
people are using it (?)

![](https://secure.gravatar.com/avatar/d151d1d91e34373d2a7cdffb08f42d78224fa0164c7ff60b5f8ff444fcf7e679?
s=60&d=retro&r=g)

### 󠀁[Simple and very powerful](https://wordpress.org/support/topic/simple-and-very-powerful-2/)󠁿

 [Anonymous User 652281](https://profiles.wordpress.org/anonymized-652281/) 2019
年 10 月 19 日

This plugin still works very well. I nearly did not try this plugin because of the
lack of updates and how difficult it is to find. I am pleased I did. It's easier
to use than similar alternatives. In fact, this is the only one I have found that
does not break any of my sites. I really hope the author is able to update this.
I would like to promote this plugin, but this will be hard while it appears abandoned.

 [ 阅读所有27条评价 ](https://wordpress.org/support/plugin/plugin-logic/reviews/)

## 贡献者及开发者

「Plugin Logic」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Plugin Logic」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plugin-logic)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/plugin-logic/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/plugin-logic/)，或通过[RSS](https://plugins.trac.wordpress.org/log/plugin-logic/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/plugin-logic/)。

## 更新日志

#### 1.1.2

 * Tested up to WordPress 6.9
 * Deprecated fixes

#### 1.1.1

 * Tested up to WordPress 6.7
 * Added missing text domain
 * Translations updated

#### 1.1.0

 * Validate regex rule syntax before saving to file
 * Translation for error messages

#### 1.0.9

 * Regex support for rules (See FAQ)
 * Switched to WP_Filesystem for file handling
 * Switched to WP_Error for error handling
 * Added admin_notices to display error messages
 * Switched from serialized data to JSON format
 * Added a process to update the database table
 * Redesigned most code after current WordPress Coding Standards
 * Seperated some code into functions for better testing with PHPUnit

#### 1.0.8

 * Removed multisite support due to security issue
 * Security hardening

#### 1.0.7

 * Added Primary Key for database table

#### 1.0.6

 * Delete rules of uninstalled plugins
 * Some code enhancements

#### 1.0.4

 * Multisite support
 * Several code changes
 * Screenshot for the multisite settings page

#### 1.0.3

 * Fixed important variable name for database table

#### 1.0.2

 * First translation added (german)
 * Transform rule input to lowercase
 * Several code enhancements

#### 1.0.1

 * Fixed uninstall
 * Standard WP table charset and collate added

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**10 月前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 6.2.0 或更高版本 **
 *  已测试的最高版本为 **6.9.9**
 *  语言
 * [English (US)](https://wordpress.org/plugins/plugin-logic/)
 *  [高级视图](https://cn.wordpress.org/plugins/plugin-logic/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  24 条 5 星评价     ](https://wordpress.org/support/plugin/plugin-logic/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/plugin-logic/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/plugin-logic/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/plugin-logic/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/plugin-logic/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/plugin-logic/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/plugin-logic/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/plugin-logic/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SMX67F2CZLDZL)