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



wp_protected_ajax_actions › WordPress Filter Hooks

Seit5.2.0
Veraltetn/v
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parameter:
  • (string[]) $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 );