Filters the array of protected Ajax actions.
This filter is only fired when doing Ajax and the Ajax request has an ‘action’ property.
$actions_to_protectstring[]
$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_protected_ajax_actions