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.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |