wphooks.info - granted_super_admin

granted_super_admin

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/capabilities.php:
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
		$super_admins[] = $user->user_login;
		update_site_option( 'site_admins' , $super_admins );

		/**
		 * Fires after the user is granted Super Admin privileges.
		 *
		 * @since 3.0.0
		 *
		 * @param int $user_id ID of the user that was granted Super Admin privileges.
		 */
		do_action( 'granted_super_admin', $user_id );
		return true;
	}
	return false;
}

/**
 * Revokes Super Admin privileges.
 *
 * @since 3.0.0