On this page
do_action( 'check_ajax_referer', string $action, false|int $result )
Fires once the Ajax request has been validated or not.
Parameters
$actionstring-
The Ajax nonce action.
$resultfalse|int-
False if the nonce is invalid, 1 if the nonce is valid and generated between 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
Source
File: wp-includes/pluggable.php. View all references
do_action( 'check_ajax_referer', $action, $result );
Related
Used By
| Used By | Description |
|---|---|
| check_ajax_referer() wp-includes/pluggable.php | Verifies the Ajax request to prevent processing requests external of the blog. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/check_ajax_referer