$att_ids = explode(‘,’, $_POST[‘jfiler-items-exclude-imgid’])), will return a key=>value array, so you must write your foreach loop to handle keys and values
foreach($att_ids as $key=>$att_id){
wp_delete_attachment($att_id);
}
$att_ids = explode(‘,’, $_POST[‘jfiler-items-exclude-imgid’])), will return a key=>value array, so you must write your foreach loop to handle keys and values
foreach($att_ids as $key=>$att_id){
wp_delete_attachment($att_id);
}