وضاحت
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 );
تصوير
انسٽاليشن
- Upload
upload-media-exif-date
directory to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
FAQ
none
جائزا
تعاون ڪندڙ & ڊولپرز
“Upload Media Exif Date” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙجمع: “Upload Media Exif Date” 2 جڳهن ۾ ترجمو ڪيو ويو آهي. ترجمي ڪندڙن جي مهرباني سندن تعاون لاءِ.
ترجمو ڪريو “Upload Media Exif Date” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
[1.07] 2024/03/05
- Fix – Changed file operations to WP_Filesystem.
1.06
Supported WordPress 6.4.
PHP 8.0 is now required.
1.05
Fixed filter hook(‘umed_postdate’).
1.04
Add filter hook(‘umed_postdate’).
1.03
Supported WordPress 5.6.
1.02
Fixed problem of metadata.
1.01
Fixed a problem with moving files.
1.00
Initial release.