On this page
do_action( 'check_admin_referer', string $action, false|int $result )
Fires once the admin request has been validated or not.
Parameters
$actionstring-
The 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.
More Information
The filter hook is applied in the default check_admin_referrer() function after the nonce has been checked for security purposes; this allows a plugin to force WordPress to die for extra security reasons. Note that check_admin_referrer is also a “pluggable” function, meaning that plugins can override it.
Source
File: wp-includes/pluggable.php. View all references
do_action( 'check_admin_referer', $action, $result );
Related
Used By
| Used By | Description |
|---|---|
| check_admin_referer() wp-includes/pluggable.php | Ensures intent by verifying that a user was referred from another admin page with the correct security nonce. |
Changelog
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/check_admin_referer