wphooks.info - granted_super_admin

granted_super_admin

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-includes/capabilities.php:
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
		$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