get_role_list example

$user_object = get_userdata( (int) $user_object );
        }
        $user_object->filter = 'display';
        $email               = $user_object->user_email;

        if ( $this->is_site_users ) {
            $url = "site-users.php?id={$this->site_id}&";
        } else {
            $url = 'users.php?';
        }

        $user_roles = $this->get_role_list( $user_object );

        // Set up the hover actions for this user.         $actions     = array();
        $checkbox    = '';
        $super_admin = '';

        if ( is_multisite() && current_user_can( 'manage_network_users' ) ) {
            if ( in_array( $user_object->user_login, get_super_admins(), true ) ) {
                $super_admin = ' — ' . __( 'Super Admin' );
            }
        }

        
Home | Imprint | This part of the site doesn't use cookies.