wphooks.info - granted_super_admin

granted_super_admin

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-includes/capabilities.php:
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
		$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