Name: enable-media-replace
Owner: Human Made
Description: Enable Media Replace, a WordPress plugin to make it possible to replace uploaded media files in a simple way.
Created: 2015-03-30 11:14:59.0
Updated: 2015-05-06 06:49:24.0
Pushed: 2015-04-01 14:22:09.0
Homepage: null
Size: 414
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This plugin allows you to replace a file in your media library by uploading a new file in its place. No more deleting, renaming and re-uploading files!
Don't you find it tedious and complicated to have to first delete a file and then upload one with the exact same name every time you want to update an image or any uploaded file inside the WordPress media library?
Well, no longer!
Now you'll be able to replace any uploaded file from the media “edit” view, where it should be. Media replacement can be done in one of two ways:
This plugin is very powerful and a must-have for any larger sites built with WordPress.
There is a shortcode available which picks up the file modification date and displays it in a post or a page. The code is:
[file_modified id=XX format=XXXX]
where the “id” is required and the “format” is optional and defaults to your current WordPress settings for date and time format.
So [file_modified id=870]
would display the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot #4)
If you want more control over the format used to display the time, you can use the format option, so [file_modified id=870 format=Y-m-d]
would display the file modification date but not the time. The format string uses standard PHP date() formatting tags.
See Enable Media Replace at WordPress.org for more information.