I try to change user permission in order that an editor could edit the “General Settings”.
I have given the editor the capability “manage_options” but in this case all the pages (writing, reading, etc.) are enabled for the editor.
I then tried to edit the options-general.php file :
at the beginnig, we have that : “if ( ! current_user_can( ‘manage_options’ ))”.
I tried to change as “if ( ! current_user_can( ‘level_7’ ) )” or “if ( ! current_user_can( ‘administrator’ ) || ! current_user_can( ‘editor’ ) )”
But the editor can’t get the “General Settings” page.
Please I need help on it!
- The topic ‘Change user permission to edit general settings’ is closed to new replies.