借助@Benoti解决问题
if (isset($_POST[\'jfiler-items-exclude-imgid\'])) {
$string = str_replace(\'"\', \'\', $_POST[\'jfiler-items-exclude-imgid\']);
$string1 = str_replace(\'\\\\\', \'\', $string);
$string3 = str_replace(\'[\', \'\', $string1);
$string4 = str_replace(\']\', \'\', $string3);
$att_ids = explode(\',\', $string4);
foreach($att_ids as $key=>$att_id){
wp_delete_attachment($att_id);
}
}