Filters the array of protected Ajax actions.
Description
This filter is only fired when doing Ajax and the Ajax request has an ‘action’ property.
Parameters
$actions_to_protect
string[]- Array of strings with Ajax actions to protect.
Source
$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.