The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...
When registering images in the media library, register with the date of EXIF information.
Upload Media Exif Date is a WordPress plugin that allows you to register images to the media library and modify their date and time based on EXIF information. If the EXIF data is not available, it provides a filter hook to extract the date and time from the filename of the image.
This plugin is suitable for users who need to manage image dates effectively, particularly photographers or content creators who rely on accurate media library organisation based on image metadata.
Best for: This plugin is best for photographers and content creators who require accurate date management for images in their media library.
What it does well
Where it falls short
Upload Media Exif Date offers basic functionality for managing image dates in WordPress. It may be useful for those needing to organise their media library based on EXIF data.
Katsushi Kawamori's own description of Upload Media Exif Date, lightly tidied.
/** ==================================================
* Sample snippet for Upload Media Exif Date
*
* The original filter hook('umed_postdate'),
* Get the date and time from the file name when the date and time cannot be read from the EXIF.
*
* @param string $postdate postdate.
* @param string $filename filename.
*/
function umed_postdate_from_filename( $postdate, $filename ) {
/* Sample for 20191120_183022.jpg */
$year = substr( $filename, 0, 4 );
$month = substr( $filename, 4, 2 );
$day = substr( $filename, 6, 2 );
$hour = substr( $filename, 9, 2 );
$minute = substr( $filename, 11, 2 );
$second = substr( $filename, 13, 2 );
$postdate = $year . '-' . $month . '-' . $day . ' ' . $hour . ':' . $minute . ':' . $second;
return $postdate;
}
add_filter( 'umed_postdate', 'umed_postdate_from_filename', 10, 2 );
Other plugins for libraries and archives.
The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...
Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling...
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real...
HappyAddons packs Header Footer Builder, Megamenu, Single Post, Archive Page, & 500+ Ready Templates into...
CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
The best WordPress templates, pattern, and layout library with 1,000+ designs built for the Gutenberg block ed...