PHPackages                             soderlind/editor-can-manage-privacy-options - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. soderlind/editor-can-manage-privacy-options

ActiveWordpress-plugin

soderlind/editor-can-manage-privacy-options
===========================================

Grants WordPress Editors the ability to manage privacy settings and access privacy admin pages

1.2.1(7mo ago)101[1 PRs](https://github.com/soderlind/editor-can-manage-privacy-options/pulls)GPL-2.0-or-laterPHPCI passing

Since Sep 18Pushed 7mo agoCompare

[ Source](https://github.com/soderlind/editor-can-manage-privacy-options)[ Packagist](https://packagist.org/packages/soderlind/editor-can-manage-privacy-options)[ Docs](https://github.com/soderlind/editor-can-manage-privacy-options)[ Fund](https://paypal.me/PerSoderlind)[ RSS](/packages/soderlind-editor-can-manage-privacy-options/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Editor Can Manage Privacy Options
=================================

[](#editor-can-manage-privacy-options)

A lightweight WordPress plugin that grants the **Editor** role access to manage site Privacy Settings — capabilities normally restricted to Administrators.

[![Screenshot of the Privacy submenu added under Settings for Editors](assets/editor-can-manage-privacy-options.png)](assets/editor-can-manage-privacy-options.png)

Why This Plugin?
----------------

[](#why-this-plugin)

By default, only Administrators can configure the site's privacy policy settings (selecting the Privacy Policy page, accessing the privacy guide, etc.). This plugin safely extends that access to trusted Editors without broadly elevating their administrative capabilities.

Features
--------

[](#features)

- Maps the core `manage_privacy_options` meta capability to an Editor-level base capability (`edit_pages`, filterable)
- Adds the Privacy submenu under **Settings** for Editors (only if core hasn’t already exposed it)
- Prevents duplicate "Privacy" menu entries (CSS + defensive late cleanup)
- Request‑scoped temporary elevation only on privacy-related pages
- Avoids granting unrelated high-risk capabilities like `manage_options`
- Heuristic admin detection (treats users with high-level caps as admins)

How It Works (Technical)
------------------------

[](#how-it-works-technical)

Hooks used:

- `map_meta_cap` – remaps `manage_privacy_options` to a safer base capability
- `admin_menu` – adds the Privacy menu (and late duplicate cleanup)
- `admin_init` – sets up request-scoped access if viewing privacy pages
- `user_has_cap` – temporarily grants `manage_options` only when core checks it on privacy pages
- `admin_head`, `admin_print_styles`, `in_admin_footer` – inject CSS to hide duplicate submenu entries

### Capability Mapping Filter

[](#capability-mapping-filter)

You can customize the base capability via the `epm_privacy_base_cap` filter:

```
add_filter( 'epm_privacy_base_cap', function( $default ) {
    return 'edit_others_posts'; // or another appropriate capability
} );
```

Installation
------------

[](#installation)

- **Quick Install**

    - Download [`editor-can-manage-privacy-options.zip`](https://github.com/soderlind/editor-can-manage-privacy-options/releases/latest/download/editor-can-manage-privacy-options.zip)
    - Upload via Plugins &gt; Add New &gt; Upload Plugin
    - Activate the plugin.
- **Composer Install**

    ```
    composer require soderlind/editor-can-manage-privacy-options
    ```
- **Updates**

    - Plugin [updates are handled automatically](https://github.com/soderlind/wordpress-plugin-github-updater#readme) via GitHub. No need to manually download and install updates.

Requirements
------------

[](#requirements)

- WordPress 6.5+
- PHP 8.2+

Security Notes
--------------

[](#security-notes)

- Scope limited strictly to privacy-related pages
- No persistent role modification; all adjustments are dynamic
- Defensive checks prevent privilege creep into unrelated admin areas

FAQ
---

[](#faq)

**Does this let Editors change other site-wide admin options?**
No. Only privacy-related access is facilitated.

**Can I change which role gets access?**
Yes, by mapping to a different capability using the `epm_privacy_base_cap` filter.

**Why inject CSS for duplicates?**
Rare timing edge cases can produce temporary duplicate menu entries. CSS plus late cleanup ensures a clean UI.

**Does it work in multisite?**
Yes in principle; network-level elevated capabilities mark a user as effectively admin and bypass the editor logic.

Development
-----------

[](#development)

Pull requests and issues welcome.

License
-------

[](#license)

MIT — see `LICENSE` file.

Author
------

[](#author)

[Per Søderlind](https://github.com/soderlind)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance63

Regular maintenance activity

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

235d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1649452?v=4)[Per Søderlind](/maintainers/soderlind)[@soderlind](https://github.com/soderlind)

---

Top Contributors

[![soderlind](https://avatars.githubusercontent.com/u/1649452?v=4)](https://github.com/soderlind "soderlind (16 commits)")

---

Tags

privacy-policywordpress-pluginwordpresswp

### Embed Badge

![Health badge](/badges/soderlind-editor-can-manage-privacy-options/health.svg)

```
[![Health](https://phpackages.com/badges/soderlind-editor-can-manage-privacy-options/health.svg)](https://phpackages.com/packages/soderlind-editor-can-manage-privacy-options)
```

###  Alternatives

[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
