Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1469966

    How can I add access to Pages for the Author Role in my Users?

    #1469969

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.