A WordPress-centric search engine for devs and theme authors



wp_protected_ajax_actions ›

Since5.1.0
Deprecatedn/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
Parameters:
  • (array) $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 );