Uma área de pesquisa sobre o WordPress para devs e autores do tema



check_ajax_referer ›

Desde2.1.0
Obsoleton/a
do_action( 'check_ajax_referer', $action, $result )
Parâmetros: (2)
  • (string) $action The Ajax nonce action.
    Required: Yes
  • (false|int) $result 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.
    Required: Yes
Definido em:
Codex:

Fires once the Ajax request has been validated or not.





Fonte

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