In my WordPress installation
(4.9.8.) the editor role isn't allowed to edit the privacy page.
It would work with following in my
$role_object = get_role( 'editor' ); $role_object->add_cap( 'manage_privacy_options', true ); $role_object->add_cap( 'manage_options' ); // this needs to be active in order that before cap works
But now the editor has lot more rights than just editing the privacy page.
Is there another way to
grant access to the editor user role with some lines of PHP code?
As a workaround I make usage of this Plugin now: https://wordpress.org/plugins/manage-privacy-options/
Another kind of workaround is just to choose no privacy page in the privacy settings.