{"id":122257,"date":"2020-05-26T23:32:01","date_gmt":"2020-05-26T23:32:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/upload-media-exif-date\/"},"modified":"2026-03-29T22:02:56","modified_gmt":"2026-03-29T22:02:56","slug":"upload-media-exif-date","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/upload-media-exif-date\/","author":12387480,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.08","stable_tag":"1.08","tested":"7.0","requires":"4.7","requires_php":"8.0","requires_plugins":null,"header_name":"Upload Media Exif Date","header_author":"Katsushi Kawamori","header_description":"When registering images in the media library, register with the date of EXIF information.","assets_banners_color":"","last_updated":"2026-03-29 22:02:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/shop.riverforest-wp.info\/donate\/","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/upload-media-exif-date\/","header_author_uri":"https:\/\/riverforest-wp.info\/","rating":5,"author_block_rating":4.5,"active_installs":200,"downloads":6445,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":3,"sections":["description","installation","faq","changelog"],"tags":{"1.00":{"tag":"1.00","author":"Katsushi Kawamori","date":"2020-05-26 23:31:38"},"1.01":{"tag":"1.01","author":"Katsushi Kawamori","date":"2020-05-27 12:06:01"},"1.02":{"tag":"1.02","author":"Katsushi Kawamori","date":"2020-06-09 11:39:07"},"1.03":{"tag":"1.03","author":"Katsushi Kawamori","date":"2021-03-07 00:44:14"},"1.04":{"tag":"1.04","author":"Katsushi Kawamori","date":"2021-03-23 11:04:01"},"1.05":{"tag":"1.05","author":"Katsushi Kawamori","date":"2023-07-18 23:05:44"},"1.06":{"tag":"1.06","author":"Katsushi Kawamori","date":"2023-11-01 23:13:09"},"1.07":{"tag":"1.07","author":"Katsushi Kawamori","date":"2024-11-05 23:18:34"},"1.08":{"tag":"1.08","author":"Katsushi Kawamori","date":"2026-03-29 22:02:56"}},"upgrade_notice":{"1.00":"<p>Initial release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2312702,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00","1.01","1.02","1.03","1.04","1.05","1.06","1.07","1.08"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2312702,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2312706,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"EXIF information","2":"Media Library"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1358,12056,84,233,1356],"plugin_category":[50],"plugin_contributors":[79586],"plugin_business_model":[],"class_list":["post-122257","plugin","type-plugin","status-publish","hentry","plugin_tags-date","plugin_tags-exif","plugin_tags-media","plugin_tags-media-library","plugin_tags-time","plugin_category-media","plugin_contributors-katsushi-kawamori","plugin_committers-katsushi-kawamori"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/upload-media-exif-date\/assets\/icon-256x256.png?rev=2312702","icon_2x":"https:\/\/ps.w.org\/upload-media-exif-date\/assets\/icon-256x256.png?rev=2312702","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/upload-media-exif-date\/assets\/screenshot-1.png?rev=2312702","caption":"EXIF information"},{"src":"https:\/\/ps.w.org\/upload-media-exif-date\/assets\/screenshot-2.png?rev=2312706","caption":"Media Library"}],"raw_content":"<!--section=description-->\n<h4>Register image to media library<\/h4>\n\n<ul>\n<li>Change to the date\/time of EXIF information.<\/li>\n<\/ul>\n\n<h4>Sibling plugin<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/exif-caption\/\">Exif Caption<\/a>.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/exif-details\/\">Exif Details<\/a>.<\/li>\n<\/ul>\n\n<h4>Sample of how to use the filter hook<\/h4>\n\n<ul>\n<li>Sample snippet<\/li>\n<\/ul>\n\n<pre><code>\/**  ==================================================\n * Sample snippet for Upload Media Exif Date\n *\n * The original filter hook('umed_postdate'),\n * Get the date and time from the file name when the date and time cannot be read from the EXIF.\n *\n * @param string $postdate  postdate.\n * @param string $filename  filename.\n *\/\nfunction umed_postdate_from_filename( $postdate, $filename ) {\n\n    \/* Sample for 20191120_183022.jpg *\/\n    $year = substr( $filename, 0, 4 );\n    $month = substr( $filename, 4, 2 );\n    $day = substr( $filename, 6, 2 );\n    $hour = substr( $filename, 9, 2 );\n    $minute = substr( $filename, 11, 2 );\n    $second = substr( $filename, 13, 2 );\n\n    $postdate = $year . '-' . $month . '-' . $day . ' ' . $hour . ':' . $minute . ':' . $second;\n\n    return $postdate;\n\n}\nadd_filter( 'umed_postdate', 'umed_postdate_from_filename', 10, 2 );\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>upload-media-exif-date<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>none<\/p>\n\n<!--section=changelog-->\n<h4>[1.08] 2025\/04\/24<\/h4>\n\n<ul>\n<li>Fix - Loading the management screen.<\/li>\n<\/ul>\n\n<h4>[1.07] 2024\/03\/05<\/h4>\n\n<ul>\n<li>Fix - Changed file operations to WP_Filesystem.<\/li>\n<\/ul>\n\n<h4>1.06<\/h4>\n\n<p>Supported WordPress 6.4.\nPHP 8.0 is now required.<\/p>\n\n<h4>1.05<\/h4>\n\n<p>Fixed filter hook('umed_postdate').<\/p>\n\n<h4>1.04<\/h4>\n\n<p>Add filter hook('umed_postdate').<\/p>\n\n<h4>1.03<\/h4>\n\n<p>Supported WordPress 5.6.<\/p>\n\n<h4>1.02<\/h4>\n\n<p>Fixed problem of metadata.<\/p>\n\n<h4>1.01<\/h4>\n\n<p>Fixed a problem with moving files.<\/p>\n\n<h4>1.00<\/h4>\n\n<p>Initial release.<\/p>","raw_excerpt":"When registering images in the media library, register with the date of EXIF information.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/122257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=122257"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/katsushi-kawamori"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=122257"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=122257"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=122257"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=122257"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=122257"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=122257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}