grant_super_admin action-hookWP 3.0.0

Fires before the user is granted Super Admin privileges.

Usage

add_action( 'grant_super_admin', 'wp_kama_grant_super_admin_action' );

/**
 * Function for `grant_super_admin` action-hook.
 * 
 * @param int $user_id ID of the user that is about to be granted Super Admin privileges.
 *
 * @return void
 */
function wp_kama_grant_super_admin_action( $user_id ){

	// action...
}
$user_id(int)
ID of the user that is about to be granted Super Admin privileges.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

grant_super_admin()
grant_super_admin
wp-includes/capabilities.php 1124
do_action( 'grant_super_admin', $user_id );

Where the hook is used in WordPress

Usage not found.