Tagged: user roles
How can I add access to Pages for the Author Role in my Users?
Hey John,
Thank you for the inquiry.
You can use the User Role Editor plugin (link below) or add the following code to the functions.php file:
function ava_add_author_capabilities() {
$role = get_role('author');
if ($role) {
$role->add_cap('edit_pages');
$role->add_cap('edit_others_pages');
}
}
add_action('admin_init', 'ava_add_author_capabilities');
Plugin: https://wordpress.org/plugins/user-role-editor/
Best regards,
Ismael