Currently by default only admin roles can edit privacy policy page.
Read-only archive: Issues · ClassicPress/ClassicPress · GitHub
Author: Dora D.
Vote count: 6
Status: open
Tags:
- request-modify-feature
Comments
Currently by default only admin roles can edit privacy policy page.
Read-only archive: Issues · ClassicPress/ClassicPress · GitHub
Author: Dora D.
Vote count: 6
Status: open
Tags:
Comments
THere is members WordPress plugin that does exactly this. It allows for roles and capability management.
When suggesting a plugin solution, a link is helpful.
This Plugin has roles editing & capabilities editing.
This can also be achieved with a little code added to a site custom plugin, something like this:
add_action( 'map_meta_cap', 'custom_manage_privacy_options', 1, 4 );
function custom_manage_privacy_options( $caps, $cap, $user_id, $args ) {
if ( ! is_user_logged_in() ) {
return $caps;
}
$user_meta = get_userdata( $user_id );
if ( is_array( $user_meta->roles ) && array_intersect( array( 'editor', 'administrator' ), $user_meta->roles ) ) {
if ( 'manage_privacy_options' === $cap ) {
$manage_name = is_multisite() ? 'manage_network' : 'manage_options';
$caps = array_diff( $caps, array( $manage_name ) );
}
}
return $caps;
}
As discussed here: