WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Media Rename

The Media Rename plugin allows you to easily rename (and retitle) your media files, once uploaded.

How to rename a single media?

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.

How to bulk rename medias?

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!

Can I use the plugin to rename medias via code?

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.16
Last Updated: 3 years ago
Active Installs: 8,000+

Ratings

4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,3,3 67,3,2
100,1,1
0,2,0 100,1,1 100,1,1 50,2,1
0,1,0 100,1,1 100,1,1 100,1,1
100,1,1
100,2,2
100,1,1 100,3,3
100,1,1
100,1,1
0,1,0
0,1,0
100,1,1
100,1,1
0,1,0
0,4,0
100,1,1