Title: Extension Profiles
Author: David Towoju
Published: <strong>2026 年 2 月 16 日</strong>
Last modified: 2026 年 2 月 16 日

---

搜索插件

![](https://ps.w.org/extension-profiles/assets/banner-772x250.png?rev=3462939)

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

# Extension Profiles

 作者：[David Towoju](https://profiles.wordpress.org/davexpression/)

[下载](https://downloads.wordpress.org/plugin/extension-profiles.1.0.0.zip)

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

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

## 描述

Extension Profiles lets WordPress administrators create named “profiles” that define
which plugins should be active. When a profile is activated, only the plugins in
that profile are loaded for your session. Other plugins are filtered out without
actually being deactivated in the database.

This is ideal for:

 * **Development and testing** – Quickly switch between different configurations
   without activating/deactivating plugins one by one.
 * **Troubleshooting** – Isolate conflicts by creating minimal profiles.
 * **Performance testing** – Compare site performance with different plugin sets.

#### How It Works

Extension Profiles uses a Must-Use (MU) plugin that intercepts the active plugins
list before WordPress loads them. This approach:

 * Never actually deactivates plugins in the database.
 * Only affects the current user’s session (via a secure cookie).
 * Has zero overhead when no profile is active.
 * Preserves all plugin settings and data.

#### Features

 * **Taxonomy-style admin page** – Familiar interface for creating and managing 
   profiles under the Plugins menu.
 * **Admin bar switcher** – Quickly activate or deactivate profiles from the WordPress
   admin bar.
 * **Dependency support** – Automatically includes required plugins when WordPress
   6.5+ “Requires Plugins” headers are present.
 * **Per-session isolation** – Each user can activate their own profile independently.
 * **Plugins page notice** – Clear warning banner on the Plugins page when a profile
   is active.

#### Requirements

 * WordPress 6.5 or higher (for dependency resolution).
 * PHP 7.4 or higher.
 * Write access to the `wp-content/mu-plugins/` directory.

## 安装

 1. Upload the `extension-profiles` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. The plugin will automatically install a Must-Use plugin file to `wp-content/mu-
    plugins/`.
 4. Navigate to **Plugins > Profiles** to create your first profile.

## 常见问题

### Does this actually deactivate plugins?

No. Plugins remain active in the database. Extension Profiles filters which plugins
are loaded per user session using a cookie-based mechanism, similar to how WordPress
Health Check’s troubleshooting mode works.

### Will other users be affected when I activate a profile?

No. Profiles are per-session and only affect the user who activated them. Other 
users and site visitors will continue to see all normally active plugins.

### What happens if I deactivate Extension Profiles?

The MU-plugin filter file is automatically removed, all active sessions are cleared,
and your site returns to its normal configuration immediately.

### What if a profile plugin causes a fatal error and locks me out?

Extension Profiles includes an emergency disable mechanism. If a profile plugin 
causes errors:

 1. **Admin Bar Method** – If you can still access the admin bar, click “Extension 
    Profiles” > “Emergency: Force Disable” (shown in red) to immediately disable the
    active profile.
 2. **URL Parameter Method** – Add `?ep_disable=1` to any admin URL (e.g., `yoursite.
    com/wp-admin/?ep_disable=1`) to bypass profile filtering and disable your active
    profile. This works even if the admin bar doesn’t load.

Both methods immediately clear your session and return you to the normal plugin 
configuration without requiring file system access.

### Does it work with Multisite?

Yes. Extension Profiles hooks both `pre_option_active_plugins` and `pre_option_active_sitewide_plugins`
to support network-activated plugins.

### What about plugin dependencies?

Extension Profiles is aware of the WordPress 6.5+ “Requires Plugins” header. When
you select a plugin that depends on another, the dependency is automatically included
in the profile. You will also receive a warning if you try to deselect a required
dependency.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ David Towoju ](https://profiles.wordpress.org/davexpression/)

[帮助将「Extension Profiles」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/extension-profiles)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release.
 * Create and manage profiles.
 * Admin bar profile switcher.
 * Dependency resolution (WordPress 6.5+).
 * Per-session filtering via MU-plugin.
 * Plugins page active profile notice.
 * Emergency disable mechanism (URL parameter + admin bar link) for profile lockout
   recovery.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/extension-profiles/)
 * 标签
 * [development](https://cn.wordpress.org/plugins/tags/development/)[profiles](https://cn.wordpress.org/plugins/tags/profiles/)
   [switching](https://cn.wordpress.org/plugins/tags/switching/)[testing](https://cn.wordpress.org/plugins/tags/testing/)
   [troubleshooting](https://cn.wordpress.org/plugins/tags/troubleshooting/)
 *  [高级视图](https://cn.wordpress.org/plugins/extension-profiles/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ David Towoju ](https://profiles.wordpress.org/davexpression/)

## 支持

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

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