• I have been trying for days to find a solution to this, from installing role capability plugins to finding a hack,

    For some strange reason no matter which theme i choose only admin can access the WP Dashboard, i need to be able to let all users to access the dashboard with my theme.

    Can anyone help me out with a hack or fix it for me please

    Regards Chris

Viewing 1 replies (of 1 total)
  • By default, only an admin has access to the dashboard. That’s for security reasons and to stop someone from accidentally (intentionally?) redesigning your site on you. For more information, please review: Roles_and_Capabilities

    Now, if you wanted to override that behavior you could add the specific capabilities to the specific role. For example, if you wanted to add the edit_theme_options ability to the author role, you could do so with the following function in a child theme’s functions.php file:

    function add_theme_capability() {
        // gets the author role
        $role = get_role( 'author' );
    
        // Allow the author to edit the theme options
        $role->add_cap( 'edit_theme_options' );
    }
    add_action( 'admin_init', 'add_theme_capability');

    For additional capabilities, please review the link I provided above.

Viewing 1 replies (of 1 total)

The topic ‘WP Dashboard Access Denied’ is closed to new replies.