wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_protected_ajax_actions › WordPress Filter Hooks

Since5.2.0
Deprecatedn/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parameters:
  • (string[]) $actions_to_protect Array of strings with Ajax actions to protect.
    Required: Yes
Defined at:
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 );