W3cubDocs

/WordPress

apply_filters( 'wp_protected_ajax_actions', string[] $actions_to_protect )

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

File: wp-includes/load.php

View on Trac

Changelog

Version Description
5.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_protected_ajax_actions