granted_super_admin action-hookWP 3.0.0

Fires after the user is granted Super Admin privileges.

Usage

add_action( 'granted_super_admin', 'wp_kama_granted_super_admin_action' );

/**
 * Function for `granted_super_admin` action-hook.
 * 
 * @param int $user_id ID of the user that was granted Super Admin privileges.
 *
 * @return void
 */
function wp_kama_granted_super_admin_action( $user_id ){

	// action...
}
$user_id(int)
ID of the user that was granted Super Admin privileges.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.