Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



check_ajax_referer ›

Seit2.1.0
Veraltetn/v
do_action( 'check_ajax_referer', $action, $result )
Parameter: (2)
  • (string) $action The Ajax nonce action.
    Erforderlich: Ja
  • (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.
    Erforderlich: Ja
Definiert in:
Codex:

Fires once the Ajax request has been validated or not.





Quellcode

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