WordPress at a glance
filter is not described

wp_protected_ajax_actions filter-hook . WP 5.2.0

Filters the array of protected Ajax actions.

This filter is only fired when doing Ajax and the Ajax request has an 'action' property.

Usage

add_filter( 'wp_protected_ajax_actions', 'filter_function_name_7597' );
function filter_function_name_7597( $actions_to_protect ){
	// filter...

	return $actions_to_protect;
}
$actions_to_protect(string[])
Array of strings with Ajax actions to protect.

Список изменений

С версии 5.2.0 Введена.

Где вызывается хук

is_protected_ajax_action()
wp_protected_ajax_actions
wp-includes/load.php 947
$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );

Где используется хук в ядре WordPress

Использование не найдено.