check_admin_referer

最后更新于:2021-11-25 22:57:43

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

Fires once the admin request has been validated or not.

参数

$action

(string)
The nonce action.

$result

(false|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.

源文件

文件: gc-includes/pluggable.php

View on Trac