wphooks.info - granted_super_admin

granted_super_admin

The hook occurs in the following file:

wp-includes/capabilities.php:
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
		$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