Bring Your Business to Life › Support › Image Store › conflict with imsanity / need way to remove orginals › Reply To: conflict with imsanity / need way to remove orginals
June 16, 2013 at 5:25 pm #53448
Keymaster
You can create a plugin to remove the images once they are uploaded, we recently did it for one of our clients, modify it as needed.
function ims_delete_original_image( $metadata, $attachment_id ){ if (empty($metadata['file']) || 'ims_image' != get_post_type($attachment_id) ) return $metadata; if( file_exists( $metadata['file'] )) @unlink( $metadata['file'] ); return $metadata; } add_filter('wp_generate_attachment_metadata','ims_delete_original_image');