wp_verify_nonce_failed хук-событие . WP 4.4.0
Fires when nonce verification fails.
Использование
add_action( 'wp_verify_nonce_failed', 'action_function_name_7921', 10, 4 ); function action_function_name_7921( $nonce, $action, $user, $token ){ // action... }
- $nonce(строка)
- The invalid nonce.
- $action(строка/число)
- The nonce action.
- $user(WP_User)
- The current user object.
- $token(строка)
- The user's session token.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
wp_verify_nonce_failed
wp-includes/pluggable.php 2179
do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token );