wp_verify_nonce_failed action-hookWP 4.4.0

Fires when nonce verification fails.

Usage

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(string)
The invalid nonce.
$action(string|int)
The nonce action.
$user(WP_User)
The current user object.
$token(string)
The user's session token.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.