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



wp_protected_ajax_actions ›

Seit5.2.0
Veraltetn/v
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parameter:
  • (array) $actions_to_protect Array of strings with AJAX actions to protect.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the array of protected AJAX actions.

This filter is only fired when doing AJAX and the AJAX request has an 'action' property.





Quellcode

$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );