Remove the admin tab in the user's list in WordPress

Remove the admin tab in the user’s list in WordPress on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter("views_users", "removing_admin_tab_from_users_list");

function removing_admin_tab_from_users_list($views)
{
    unset($views['administrator']);
    return $views;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.