The Media Rename plugin allows you to easily rename (and retitle) your media files, once uploaded.
Go to the Media section of the admin panel and open a media of your choice. You will see a new field named "Filename" and your current filename in it. Change it to whatever you want the new name to be and hit the "Update" button.
Go to the Media section of the admin panel, select the "Rename" or "Rename & Retitle" bulk action (depending on if you want the media get retitled too) from the dropdown, check the medias you would like to rename and change their filenames using the "Filename" fields at the last column. When you are done, hit the "Apply" button and let the plugin do its magic!
Sure, you can use the "do_rename" static function, located at the Media_Rename class. Prototype: Media_Rename::do_rename($attachment_id, $new_filename, $retitle = 0). On success the function returns 1, and on error - the error message.
Requires: 3.5 or higher
Compatible up to: 3.8.3
Last Updated: 2014-3-1
Active Installs: 7,000+
1 of 3 support threads in the last two months have been resolved.
Got something to say? Need help?