wp_protected_ajax_actions

wp_protected_ajax_actions

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_protected_ajax_actions') is found 1 times:

  • /wp-includes/load.php line 1200
    	 * @since 5.2.0
    	 *
    	 * @param string[] $actions_to_protect Array of strings with Ajax actions to protect.
    	 */
    	$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
    
    	if ( ! in_array( $_REQUEST['action'], $actions_to_protect, true ) ) {
    		return false;
    	}
    
    	return true;