granted_super_admin хук-событиеWP 3.0.0

Fires after the user is granted Super Admin privileges.

Использование

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.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.