remove_role example

return wp_roles()->add_role( $role$display_name$capabilities );
}

/** * Removes a role, if it exists. * * @since 2.0.0 * * @param string $role Role name. */
function remove_role( $role ) {
    wp_roles()->remove_role( $role );
}

/** * Retrieves a list of super admins. * * @since 3.0.0 * * @global array $super_admins * * @return string[] List of super admin logins. */
Home | Imprint | This part of the site doesn't use cookies.