{"id":109356,"date":"2019-09-24T03:25:38","date_gmt":"2019-09-24T03:25:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dh-rename-uploaded-files\/"},"modified":"2025-08-18T13:51:02","modified_gmt":"2025-08-18T13:51:02","slug":"dh-rename-uploaded-files","status":"publish","type":"plugin","link":"https:\/\/fr-ca.wordpress.org\/plugins\/dh-rename-uploaded-files\/","author":7828190,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4","stable_tag":"4","tested":"6.6.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"DH - Rename Uploaded Files","header_author":"Dannie Herdyawan","header_description":"Enables you to rename WordPress media uploads on the fly.","assets_banners_color":"635d9b","last_updated":"2025-08-18 13:51:02","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/paypalme\/DannieHerdyawan","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/dh-rename-uploaded-files\/","header_author_uri":"https:\/\/www.askomba.com\/","rating":5,"author_block_rating":0,"active_installs":0,"downloads":1950,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"k0z3y","date":"2022-01-06 12:10:00"},"1.0.1":{"tag":"1.0.1","author":"k0z3y","date":"2022-01-06 12:10:00"},"2":{"tag":"2","author":"k0z3y","date":"2022-11-06 03:31:09"},"3":{"tag":"3","author":"k0z3y","date":"2022-12-17 13:06:49"},"4":{"tag":"4","author":"k0z3y","date":"2025-08-18 13:51:02"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2161800,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2161800,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2161800,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":null,"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3346455,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Plugin settings page in WordPress admin showing all available configuration options for renaming uploaded files."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[88,84,3990,600,259],"plugin_category":[50],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-109356","plugin","type-plugin","status-publish","hentry","plugin_tags-files","plugin_tags-media","plugin_tags-rename","plugin_tags-security","plugin_tags-upload","plugin_category-media","plugin_committers-k0z3y"],"banners":{"banner":"https:\/\/ps.w.org\/dh-rename-uploaded-files\/assets\/banner-772x250.png?rev=2161800","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dh-rename-uploaded-files\/assets\/icon-128x128.png?rev=2161800","icon_2x":"https:\/\/ps.w.org\/dh-rename-uploaded-files\/assets\/icon-256x256.png?rev=2161800","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dh-rename-uploaded-files\/trunk\/screenshot-1.png?rev=3346455","caption":"Plugin settings page in WordPress admin showing all available configuration options for renaming uploaded files."}],"raw_content":"<!--section=description-->\n<p>Automatically renames WordPress media uploads with customizable naming patterns for better organization and security.<\/p>\n\nfrom \"hello-world.jpg\"\n\n<ul>\n<li>to <strong>orlold-whel.jpg<\/strong><\/li>\n<li>or <strong>hello-world_orlold-whel.jpg<\/strong><\/li>\n<li>or <strong>d6sf8z7mlo5ey4h90nkqcbixgr3wvj.jpg<\/strong><\/li>\n<\/ul>\n\nOther Plugins:\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/dh-anti-adblocker\/\">DH - Anti AdBlocker<\/a> - Block the adblocker<\/li>\n<\/ul>\n\nNotes:\n\n<ul>\n<li>Only affects newly uploaded files.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h3>Automatic Installation<\/h3>\n\n<ol>\n<li>Go to 'Plugins' &gt; 'Add New' in your WordPress admin panel<\/li>\n<li>Search for 'DH - Rename Uploaded Files'<\/li>\n<li>Click 'Install Now' and then 'Activate' the plugin<\/li>\n<li>Go to 'Settings' &gt; 'DH \u2013 Rename Uploaded Files' to configure the plugin<\/li>\n<\/ol>\n\n<h3>Manual Installation<\/h3>\n\n<ol>\n<li>Download the plugin zip file<\/li>\n<li>Go to 'Plugins' &gt; 'Add New' &gt; 'Upload Plugin' in WordPress<\/li>\n<li>Upload the zip file and click 'Install Now'<\/li>\n<li>After installation, click 'Activate Plugin'<\/li>\n<li>Go to 'Settings' &gt; 'DH \u2013 Rename Uploaded Files' to configure the plugin<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>4<\/h4>\n\n<h3>Added<\/h3>\n\n<ul>\n<li>Added security check to prevent direct file access<\/li>\n<li>Added proper input validation for empty filenames<\/li>\n<li>Added proper documentation for the main function with <code>@param<\/code> and <code>@return<\/code> tags<\/li>\n<\/ul>\n\n<h3>Changed<\/h3>\n\n<ul>\n<li>Restructured code using switch statement for better readability and maintainability<\/li>\n<li>Optimized variable usage to avoid redundant operations<\/li>\n<li>Improved code organization and indentation<\/li>\n<li>Enhanced error handling for file renaming operations<\/li>\n<li>Updated default case handling in the switch statement<\/li>\n<\/ul>\n\n<h3>Fixed<\/h3>\n\n<ul>\n<li>Fixed potential issues with undefined array keys using null coalescing operator<\/li>\n<li>Fixed code style to follow WordPress coding standards<\/li>\n<li>Fixed potential edge cases in file extension handling<\/li>\n<\/ul>\n\n<h3>Removed<\/h3>\n\n<ul>\n<li>Removed redundant global variable usage<\/li>\n<li>Removed duplicate code blocks by consolidating logic<\/li>\n<\/ul>\n\n<h3>Security<\/h3>\n\n<ul>\n<li>Added ABSPATH check to prevent direct file access<\/li>\n<li>Improved sanitization of file names<\/li>\n<li>Added proper escaping for file paths<\/li>\n<\/ul>\n\n<h3>Performance<\/h3>\n\n<ul>\n<li>Optimized string operations<\/li>\n<li>Reduced redundant function calls<\/li>\n<li>Improved memory usage by reusing variables<\/li>\n<\/ul>\n\n<h3>Compatibility<\/h3>\n\n<ul>\n<li>Maintained backward compatibility with all existing settings<\/li>\n<li>Ensured compatibility with WordPress 6.5+<\/li>\n<li>Tested with PHP 8.0+<\/li>\n<\/ul>\n\n<h3>Developer Notes<\/h3>\n\n<ul>\n<li>The plugin now follows better coding standards<\/li>\n<li>Improved filter hooks documentation<\/li>\n<li>Better separation of concerns in the code<\/li>\n<\/ul>\n\n<h4>3<\/h4>\n\n<ul>\n<li>Fix some bugs.<\/li>\n<\/ul>\n\n<h4>2<\/h4>\n\n<ul>\n<li>Fix some bugs.<\/li>\n<li>Compatible with WordPress 6.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix some bugs.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Rename WordPress media uploads on the fly with customizable naming patterns. Secure and lightweight.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/109356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=109356"}],"author":[{"embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/k0z3y"}],"wp:attachment":[{"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=109356"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=109356"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=109356"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=109356"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=109356"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=109356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}