posts." where ";
$delete_images=$_POST['SEO_Jerusalem_delete_image'];
foreach($delete_images as $delete_image_id => $value ){
$query.='`ID`='.$delete_image_id.' OR ';
}
$query.="`ID`=-1";
if ($wpdb->query($query)){
echo "Files Deleted!";
}
}
echo "
Clean Up links
";
echo "listing all images that are less than 400x400
";
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => null, // any parent
);
$attachments = get_posts($args);
$i=0;
echo '";
}
?>