wp_verify_nonce_failed WordPress Action Hook

This hook is called when the wp_verify_nonce() function fails. It can be used for custom error handling.

do_action( 'wp_verify_nonce_failed', string $nonce, string|int $action, WP_User $user, string $token ) #

Fires when nonce verification fails.


Parameters

$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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.