wp_verify_nonce_failed хук-событиеWP 4.4.0

Fires when nonce verification fails.

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

add_action( 'wp_verify_nonce_failed', 'wp_kama_verify_nonce_failed_action', 10, 4 );

/**
 * Function for `wp_verify_nonce_failed` action-hook.
 * 
 * @param string     $nonce  The invalid nonce.
 * @param string|int $action The nonce action.
 * @param WP_User    $user   The current user object.
 * @param string     $token  The user's session token.
 *
 * @return void
 */
function wp_kama_verify_nonce_failed_action( $nonce, $action, $user, $token ){

	// action...
}
$nonce(строка)
The invalid nonce.
$action(строка|int)
The nonce action.
$user(WP_User)
The current user object.
$token(строка)
The user's session token.

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

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

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

wp_verify_nonce()
wp_verify_nonce_failed
wp-includes/pluggable.php 2358
do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token );

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

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