wp_protected_ajax_actions

wp_protected_ajax_actions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_protected_ajax_actions') is found 1 times:

  • /wp-includes/load.php line 1219
    	 * @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;