Title: Simple Plugin Selector
Author: Peter Lawrenson
Published: <strong>2020 年 9 月 10 日</strong>
Last modified: 2024 年 12 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-plugin-selector/assets/icon-256x256.png?rev=2379101)

# Simple Plugin Selector

 作者：[Peter Lawrenson](https://profiles.wordpress.org/lorro/)

[下载](https://downloads.wordpress.org/plugin/simple-plugin-selector.2.0.0.zip)

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

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

## 描述

By default, WordPress will load every plugin on every page. The Simple Plugin Selector(
SPS) plugin allows the administrator to select which plugins are used on a page-
by-page basis. This prevents unneeded plugins and plugin support files from loading.
HTTP requests and download size will be reduced, so improving website performance
for the visitor.

For example, you probably use your contact form plugin only on your Contact Us page.
SPS allows you to deactivate it when the page request is for one of your other pages,
so your users don’t download your contact form style sheets and scripts unnecessarily.

The plugin has a user-friendly interface, so the administrator can see easily which
plugins are running on each page.

Plugin filtering is disabled in admin context.

Not for newbies! The administrator must have a clear grasp of which plugins are 
required for each page, otherwise some pages will have errors because a required
plugin is not loaded.

### Deactivating

Deactivating SPS in the normal plugins list will deactivate plugin filtering and
remove the SPS file from the mu-plugins directory.

Removing the SPS plugin using FTP will leave an unwanted SPS file in mu-plugins,
but plugin filtering will be disabled.

SPS settings are not deleted by plugin deactivation or deletion. Reactivating should
pickup filtering where it left off.

### Settings

Go to Dashboard > Settings > Simple Plugin Selector to set which plugins are required
on a page by page basis. If the site has cache or optimize plugins, they should 
be cleared after changing any SPS settings.

If a new page, post or product is created, all plugins will be activated for that
by default until set otherwise in SPS settings.

If a new plugin is activated, it will be loaded for all pages by default until set
otherwise in SPS settings.

## 屏幕截图

 * [[
 * Settings – Set the number of items per settings tab
 * [[
 * Settings – Set plugin type: Always / Never / Sometimes
 * [[
 * Settings – Set plugin loading per page for “Sometimes” plugins
 * [[
 * Settings – Set plugin loading per post for “Sometimes” plugins

## 安装

Load and activate the plugin in the normal way at Dashboard > Plugins > Add New

Once activated, the plugin will copy its plugin filter file to the /wp-content/mu-
plugins directory. Code in mu-plugins runs before normal plugins are loaded. That’s
why the plugin filter file must be run from there.

## 常见问题

### How much faster will my site run?

The degree of improvement will vary between sites. Users with slow connections are
likely to see a big improvement. Mobile users in particular should see quicker load
times.

### A page doesn’t work properly or look as it should?

Check the plugin settings for that page. Maybe a required plugin has not been enabled.
If the page still doesn’t work, enable all plugins for that page.

### The theme customizer is not working properly

The page inside the customizer is working in front-side context. If there is a plugin
which is set to not load on the front-side page, then it won’t be available to the
admin-side customizer either. In case of issues, temporarily deactivate SPS at Dashboard
> Plugins > Installed Plugins while using the customizer.

### Will it work with WooCommerce

Yes.

### Will it work with Polylang or with WPML (WordPress Multilingual Plugin)

Not tested with Polylang or the premium plugin WPML.

### Will it work on multi-site installations?

Not tested on multi-site installations.

### It works on some pages but not others

If you create a new page, post or product, SPS does not make assumptions about which
plugins are needed for it, so SPS will load all plugins. Run through the settings
screens to set plugins for any new pages, posts or products.

### It doesn’t work at all

SPS won’t work if permalinks are set to “Plain”

## 评价

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

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-2470/)󠁿

 [mrguen](https://profiles.wordpress.org/mrguen/) 2020 年 11 月 4 日

I feared a little to use this new plugin. Was looking for a way to avoid downloading
useless resources on all my WordPresss / Woocommerce website pages and this plugin
does the job well.

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

## 贡献者及开发者

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

贡献者

 *   [ Peter Lawrenson ](https://profiles.wordpress.org/lorro/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.0

 * Fixed a bug in settings. Users of previous versions will need to redo their settings.
 * Updated the code to meet WordPress security requirements
 * Tested with WP 6.7.1

#### 1.3.2

 * Tested with WP 6.5.2

#### 1.3.0

 * Now installs as a normal plugin. No FTP install needed.
 * Tested with WP 6.2.2

#### 1.2.0

 * Support for Tags, Product Tags and Product Attributes removed as too buggy.
 * Tested with WP 5.8

#### 1.1.1

 * Fixed minor bug that occurred infrequently.

#### 1.1.0

 * Added support for post, category and tag pages.
 * Added support for WooCommerce pages: products, product categories, product tags
   and product attributes.
 * Added “Copy settings” button on page settings tabs to make settings easier.
 * Added pagination of long page lists in settings.

#### 1.0.4

 * Amended to work on with Polylang sites where language codes are embedded in page
   urls.
    (This feature is no longer supported as it proved to be too buggy)

#### 1.0.3

 * Amendments to meet WordPress.org guidelines.

#### 1.0.2

 * Submitted to WordPress.org for review.

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.2 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-plugin-selector/)
 * 标签
 * [performance](https://cn.wordpress.org/plugins/tags/performance/)[plugins](https://cn.wordpress.org/plugins/tags/plugins/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-plugin-selector/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Peter Lawrenson ](https://profiles.wordpress.org/lorro/)

## 支持

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

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