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



wp_protected_ajax_actions ›

Desde5.2.0
Obsoleton/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parâmetros:
  • (array) $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 );