do_action( ‘check_ajax_referer’, string $action, false|int $result )

In this article

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

do_action( 'check_ajax_referer', $action, $result );

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.