Title: Bulk Plugin Toggle
Author: Scott Reilly
Published: <strong>2021 年 7 月 13 日</strong>
Last modified: 2026 年 6 月 9 日

---

搜索插件

![](https://ps.w.org/bulk-plugin-toggle/assets/banner-772x250.png?rev=2563305)

![](https://ps.w.org/bulk-plugin-toggle/assets/icon-256x256.png?rev=2563305)

# Bulk Plugin Toggle

 作者：[Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[下载](https://downloads.wordpress.org/plugin/bulk-plugin-toggle.1.0.4.zip)

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

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

## 描述

This plugin adds “Toggle” as a bulk action for the plugins listing to toggle the
activation state for selected plugins.

From the admin listing of plugins you can now select multiple plugins and choose“
Toggle” from the “Bulk actions” dropdown. When applied, all selected plugins that
are currently activated will become deactivated, and all selected plugins that are
currently deactivated will become activated.

Links: [Plugin Homepage](https://coffee2code.com/wp-plugins/bulk-plugin-toggle/)
| [Plugin Directory Page](https://wordpress.org/plugins/bulk-plugin-toggle/) | [GitHub](https://github.com/coffee2code/bulk-plugin-toggle/)
| [Author Homepage](https://coffee2code.com/)

## 屏幕截图

[⌊The "Toggle" option in the "Bulk Actions" dropdown for the admin plugins listing.⌉⌊
The "Toggle" option in the "Bulk Actions" dropdown for the admin plugins listing
.⌉[

The “Toggle” option in the “Bulk Actions” dropdown for the admin plugins listing.

## 安装

 1. Install via the built-in WordPress plugin installer. Or install the plugin code
    inside the plugins directory for your site (typically `/wp-content/plugins/`).
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. From the admin ‘Plugins’ page, select the checkboxes for plugins whose activation
    state you’d like to toggle, then from the “Bulk Actions” dropdown (found above-
    left and below-left of the table) choose “Toggle” and press the “Apply” button 
    to submit. Any selected plugins that were active will get deactivated and any that
    were deactive will get activated.

## 常见问题

### Why isn’t “Toggle” present in the bulk actions dropdown for plugins for me?

The “Toggle” bulk action is only available to users who have both the “activate_plugins”
and “deactivate_plugins” capabilities, which generally implies administrators. The
toggle is also only shown when looking at the “All” or “Update Available” views.

### Does this plugin include unit tests?

Yes. The tests are not packaged in the release .zip file or included in plugins.
svn.wordpress.org, but can be found in the [plugin’s GitHub repository](https://github.com/coffee2code/bulk-plugin-toggle/).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4 (2026-06-09)

 * Fix: Add missing textdomain for string translations
 * Fix: Prevent PHP warning in instances where a global array key is not set
 * Change: Prevent unnecessary Plugin Check warnings
 * Change: Note compatibility through WP 7.0+
 * Change: Note compatibility through PHP 8.5+
 * Change: Update copyright date (2026)

#### 1.0.3 (2025-01-19)

 * Change: Prevent translations from containing unintended markup
 * Change: Note compatibility through WP 6.7+
 * Change: Update copyright date (2025)
 * Change: Tweak formatting in `README.md`
 * New: Add `.gitignore` file
 * Change: Remove development and testing-related files from release packaging
 * Unit tests:
    - Hardening: Prevent direct web access to `bootstrap.php`
    - Allow tests to run against current versions of WordPress
    - New: Add `composer.json` for PHPUnit Polyfill dependency
    - Change: Prevent PHP warnings due to missing core-related generated files
    - Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
    - Change: In bootstrap, store path to plugin file constant
    - New: Add script to install WP for unit testing

#### 1.0.2 (2021-11-27)

 * Change: Note compatibility through WP 5.8+
 * Change: Unit tests: In bootstrap, move definition of constant for plugin file
   directory to top of file

_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/bulk-plugin-toggle/blob/master/CHANGELOG.md)._

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**3 小时前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/bulk-plugin-toggle/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[bulk actions](https://cn.wordpress.org/plugins/tags/bulk-actions/)
   [coffee2code](https://cn.wordpress.org/plugins/tags/coffee2code/)[plugins](https://cn.wordpress.org/plugins/tags/plugins/)
   [toggle](https://cn.wordpress.org/plugins/tags/toggle/)
 *  [高级视图](https://cn.wordpress.org/plugins/bulk-plugin-toggle/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## 支持

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

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

## 捐助

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

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