1213* This filter is only fired when doing Ajax and the Ajax request has an 'action' property.1214*1215* @since 5.2.01216*1217* @param string[]$actions_to_protectArray of strings with Ajax actions to protect.1218*/1219$actions_to_protect=(array)apply_filters('wp_protected_ajax_actions',$actions_to_protect);12201221if(!in_array($_REQUEST['action'],$actions_to_protect,true)){1222returnfalse;1223}12241225returntrue;
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.