# Let Editors Edit the Privacy Policy Page

> WordPress only lets administrators edit the privacy policy page. This allows editors to update it too.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, privacy, capabilities
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/editors-edit-privacy-page/

## Code

```php
add_filter( 'map_meta_cap', function ( $caps, $cap, $user_id, $args ) {
    if ( ! in_array( $cap, array( 'edit_post', 'edit_page', 'delete_post', 'delete_page' ), true ) || empty( $args[0] ) ) {
        return $caps;
    }

    $privacy_page = (int) get_option( 'wp_page_for_privacy_policy' );

    if ( $privacy_page && (int) $args[0] === $privacy_page && in_array( 'manage_privacy_options', $caps, true ) && user_can( $user_id, 'edit_others_pages' ) ) {
        $caps = array_diff( $caps, array( 'manage_privacy_options' ) );
        $caps[] = 'edit_others_pages';
    }

    return array_values( $caps );
}, 20, 4 );
```

## Notes

The Settings > Privacy screen itself stays administrator-only.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Let Editors Edit the Privacy Policy Page" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
