admin管理员组

文章数量:1122832

I'm trying to create a new role where the only thing this role can do is manage/add/edit/delete users in the admin.

    add_role('test_role', 'TEST Role', array(
        'read' => true,
        'edit_users' => true,
        'add_users' => true,
        'create_users' => true,
        'delete_users' => true,
        'list_users' => true,
        'promote_users' => true,
        'remove_users' => true,
    ));

I must be missing something, after running this code and creating a new user with that role I can't login to the admin, It just redirects to the frontend of the site.

Any ideas?

本文标签: phpWordPress Create New Role Just to Manage Users