1238* This filter is only fired when doing Ajax and the Ajax request has an 'action' property.1239*1240* @since 5.2.01241*1242* @param string[]$actions_to_protectArray of strings with Ajax actions to protect.1243*/1244$actions_to_protect=(array)apply_filters('wp_protected_ajax_actions',$actions_to_protect);12451246if(!in_array($_REQUEST['action'],$actions_to_protect,true)){1247returnfalse;1248}12491250returntrue;
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.