// Add editor the privilege to edit theme
$role_object = get_role( 'editor' ); // get the the role object
$role_object->add_cap( 'edit_theme_options' ); // add $cap capability to this role object
Code language: PHP (php)
It will be enough running this once.
Leave a Reply