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