Replacing image files means you can replace attachment files simply uploading another new file in its place in media library without having to delete, rename and then re-upload files in WordPress. Enable Media Replace works as a big time saver, it enables you to replace images. Using this plugin you can would be able to replace any uploaded media file both from WordPress media library page or Add New/Edit post screens.
Media replacement can be done in one of two ways:
- Simply replace the image file. It requires you to upload a file of same type which you are going to replace. The name of the file stays same, no matter what your image file is called.
- Or you can replace the file, use the new file name and update all the links. This option uses the new name and type of your file replacing your old file then updating and pointing all links to it.
Replacing Image Through Media Library Page
Install and activate Enable Media Replace plugin. Upon activation visit your admin area Dashboard -> Media -> Library page and you will be noticing ‘Replace media‘ link (on hover) under each media item.
Clicking ‘Replace media‘ link directs you to a page where you can browser and upload a new image then choose whether to ‘Just replace the file’ or ‘Replace the file, use new file name and update all links’. Finally, click the ‘Upload‘ button and the image will be replaced.
The image has been replaced as shown in the given screenshot, no more steps
Replacing Image Through Edit Post Screen:
Image can also be replaced from Add New/Edit post and post type screens. Simply click the edit image icon (pencil icon) present over the image inside WordPress visual editor. Then click ‘Replace‘ button below the image, upload another image file and then replace it by clicking the ‘Replace‘ button as shown in the given screenshots:
[heading size=”17″]Step-1 Click That Pencil Icon[/heading]
[heading size=”17″]Step-2 Click Replace Button[/heading]
[heading size=”17″]Step-3 Upload/Choose Another Image And Click Replace button[/heading]
[heading size=”17″]Step-4 That’s It[/heading]
The plugin also provides you a shortcode to display file modification time on a post or page:
[file_modified id=XX format=XXXX]
Where the “id” parameter is required and the “format” parameter is optional which defaults to your current date and time format settings in WordPress.
You can get the ID for any media file from it URL on its edit page. To get more control over time format, use the format option like this:
[file_modified id=870 format=Y-m-d] This would display only file modification date and not the time.