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



wp_protected_ajax_actions › Hooks de Filtros WordPress

Desde5.2.0
Obsoleton/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parâmetros:
  • (string[]) $actions_to_protect Array of strings with Ajax actions to protect.
    Required: Yes
Definido em:
Codex:

Filters the array of protected Ajax actions.

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





Fonte

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