$data = wp_get_attachment_metadata($media_id, FALSE);
After uploading image to media library:
$data[file] => 2014/12/test-image-1.jpg
After replacing image:
$data[file] => /wp-content/uploads/2014/12/test-image-1.jpg
Hi,
how to modify the above code to make automatic duplication of images (when they are uploaded or after upload) for language other than default?
If they where duplicated, I can use plugin to rename images (titles and filenames) and not upload them twice.
Best regards,
R