wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_protected_ajax_actions › Les Filtres WordPress

Depuis5.2.0
Dépréciéen/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Paramètres:
  • (string[]) $actions_to_protect Array of strings with Ajax actions to protect.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the array of protected Ajax actions.

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





Source

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