2020-05-01 / 5435阅 / 悠然
Verifies the Ajax request to prevent processing requests external of the blog.
(int|string)
(Optional)
Action nonce.
Default value: -1
(false|string)
(Optional)
Key to check for the nonce in $_REQUEST (since 2.5). If false, $_REQUEST values will be evaluated for '_ajax_nonce', and '_wpnonce' (in that order).
Default value: false
(bool)
(Optional)
Whether to die early when the nonce cannot be verified.
Default value: true
(int|false) 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. False if the nonce is invalid.