wp_protected_ajax_actions

Advertisement

Summery Summery

Filters the array of protected AJAX actions.

Syntax Syntax

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

Description Description

This filter is only fired when doing AJAX and the AJAX request has an ‘action’ property.

Parameters Parameters

$actions_to_protect

(string[]) Array of strings with AJAX actions to protect.

Source Source

File: wp-includes/load.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.