When registering images in the media library, register with the date of EXIF information.
As of April 2026, Upload Media Exif Date is a WordPress date plugin with 200 active installations and a 5/5 rating from 2 reviews. It has been downloaded 6.4K+ times in total. Requires WordPress 4.7+ and PHP 8.0+. Available on WordPress.org since 2020. Actively maintained — updated within the last month. Top alternative: WP Meta and Date Remover.
/** ==================================================
* 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( $filenam…| WordPress | 4.7+ requiredTested up to 7.0 |
| PHP | 8.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.