plugin-icon

Upload Media Exif Date

When registering images in the media library, register with the date of EXIF information.
Puanlar
5
Son güncellenme
June 27, 2024
Sürüm
1.07
Aktif kurulumlar
200

Register image to media library

  • Change to the date/time of EXIF information.

Sibling plugin

Sample of how to use the filter hook

  • Sample snippet
/** ================================================== * 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 );
ÜcretsizCreator paketinde
Yükleme işlemini tamamlayarak, WordPress.com'un Hizmet Şartları ile Üçüncü Taraf Eklenti Şartlarını kabul etmiş olursunuz.
Aktif kurulumlar
200
Test edilen son sürüm
6.6
Bu eklenti, WordPress tarafından barındırılan kurulumunuzda kullanılmak üzere indirilebilir.