Phoenix Media Rename


Uvelike poboljšajte svoj SEO: preimenujte vaše medijske zapise s “Phoenix Media Rename” dodatkom

A complete guide to use and configure Phoenix Media Rename is available at Phoenix Media Rename official page

Snimke zaslona

  • screenshot-1.jpg
  • screenshot-2.jpg
  • screenshot-3.jpg


  1. Učitaj phoenix-media-rename direktorij u /wp-content/plugins/ direktorij
  2. Aktivirajte dodatak kroz ‘Dodaci’ izbornik u WordPress-u
  3. Gotovo je! Možete ići na bilo koju pojedinačnu stranicu medijskog zapis a i primijetit ćete novo polje “Naziv datoteke”. Grupno uređivanje je također dostupno na na stranici s “Mediji” popisom.


How to rename files translated with WPML?

Make sure that the WPML Multilingual CMS and WPML Media Translation plugins are activated (you can find more information on WPML in the WPML official site).

Add one or more images to your media library, WPML Media Translation will add the localized version to your media library.

Go to WPML -> Media Translation and edit the localized version of your media files, you can change both the image title and the file attached to localized version.

Rename images using Phoenix Media Rename.

Go to your media library, select the rename operation, check all the files you want to rename, edit the filenames and confirm the bulk operation, Phoenix Media Rename and WPML will do all the rest!

Please look at the screenshoot section to see how the process works.

How to serialize file names?

You can serialize file names enclosing the variable parts between { and }, this will cause Phoenix Media Rename to generate a sequence of filenames.

The variable part has to be an integer number, but can start with 0 (i.e. 0023).

Please note: check all the files you want to serialize and write the name for the first one, see screenshot-3.jpg for reference.

Kako spriječiti uklanjanje akcenata u imenu datoteke?

Idi na Phoenix Media Rename stranicu postavki i odznači “Ukloni akcente” opciju, to će spriječiti sanitizaciju akcenata
Napomena: izbjegavanje sanitizacije akcenata može uzrokovati neispravan URL na nekim hostinzima.

Kako izbjeći obradu revizija?

Idi na Phoenix Media Rename stranicu opcija i odznači opciju “Ažuriranje Revizija”, to će spriječiti ažuriranje revizija.
Napomena: izbjegavanje obrade revizija će ubrzati proces preimenovanja, ali će uzrokovati neispravan link medija ako vratiš post na stariju verziju.

Kako da promijenim ime pojedinom mediju?

Idite u Medijski odjeljak administratorske ploče i otvorite medij prema izboru. Vidjet ćete novo polje “Naziv datoteke” i vaš trenutni naziv datoteke u njemu. Promijenite ga u što god želite i pritisnite dugme “Ažuriraj”.

Kako da grupno promijenim nazive medijima?

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!
Please note: the bulk action are only available in List View, switch from Grid View to List View if needed.

How to rename medias getting the filename from the title of the post they are attached to?

Go to the Media section of the admin panel, select the “Rename from Post” or “Rename & Retitle from Post” bulk action (depending on if you want the media get retitled too) from the dropdown, check the medias you would like to rename and hit the “Apply” button

Mogu li koristiti dodatak da promijenim ime medijima kroz kod?

Sure, you can use the “do_rename” static function, located at the Phoenix_Media_Rename class. Prototype: do_rename($attachment_id, $new_filename, $retitle = 0, $title_from_post = 0, $name_from_post = 0, $check_post_parent = true ). On success the function returns 1, and on error – the error message.
The function do_rename is a static method wrapped inside the Phoenix_Media_Rename class: call it using Phoenix_Media_Rename::do_rename

Can I integrate 3rd party plugins?

Sure, you can use the “pmr_renaming_successful” that fires when the rename process is complete and returns old and new filenames.

Feel free to ask for more custom actions!


* my_callback
* @param [string] $old_filename
* @param [string] $new_filename
function my_callback( $old_filename, $new_filename ) {
    // your code

add_action( 'pmr_renaming_successful', 'my_callback', 10, 2 );

Do you need more features?

If you would like more features, such as automatic renaming, or a dashboard for renaming files, have a look at the freemium plugin Media File Renamer. Yes, we are friends!


28. veljače 2023. 4 odgovora
Best Plugin 5 star! Just one more thing I think about before change to another one is add %category% as constant as suffix/prexix Thank you and have a nice day!
06. veljače 2023. 1 odgovor
If you simply want to rename the files after uploaded, then this is the plug in to go. Works great and very lightweight. Thanks!
24. studenoga 2022. 2 odgovora
Incredibly useful and simple plugin, great for organisation and SEO. The bulk Rename/Retitle feature is especially useful. My only issue is with the serialization feature, which is enabled by default, and can lead to various buggy behaviour when renaming multiple files, including adding the wrong digits onto the end of file names and incorrectly updating the file location, e.g. '2022/11/[old-file-name].jpg' becomes '[new-file-name]' (requiring me to go into the database to fix - thankfully only a couple of times). Took me a few hours to even realise serialization was the cause of the problem. Thankfully, it can be disabled, then everything works fine, so I'd recommend doing this unless you have a specific use for the feature.
23. rujna 2022. 1 odgovor
It does what it proposes with simplicity and objectivity.
Pročitajte svih 57 recenzija

Suradnici i Programeri

“Phoenix Media Rename” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.


“Phoenix Media Rename” je prijeveden na 8 dijalekata. Zahvala prevodiocima za njihov doprinos.

Prevedite “Phoenix Media Rename” na svoj jezik.

Zainteresirani ste za razvoj?

Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.

Dnevnik promjena


  • removed . character from sanification list due to issues with WordPress core that causes problems during images upload


  • added troublesome characters to sanification process


  • fixed issue in renaming from post when filename already exists


  • fixed issue in renaming from post


  • fixed issue in renaming scaled files
  • fixed issue in renaming process when debug mode is disabled


  • changed rename process


  • fixed issue with scaled files


  • added options to add post parent category name as prefix or suffix of the filenames


  • changed revision update management


  • fixed issue when header constant is empty and trailer constant has a value


  • fixed issue in trailer constant cleaning


  • fixed title in retitle bulk action when filename requires sanitization


  • fixed renaming webp and avif files generated by ShortPixel when the filename contains more than one “-” character


  • fixed renaming webp and avif files generated by ShortPixel


  • fixed renaming webp and avif files generated by ShortPixel


  • fixed “Retitle from post” behavior when there is no post attached to the media


  • added new bulk operation “Retitle from post”, that allows to change only the title of the file getting it from the title of the post to which the media is attached


  • added new bulk operation “Retitle”, that allows to change only the title of the file


  • fixed compatibility issue with Elementor background images


  • fixed compatibility issue with Elementor custom page templates


  • fixed compatibility issue with Elementor


  • fixed compatibility issue with WMPL


  • fixed compatibility issue with WordPress 6.0


  • added support for Rank Math redirections


  • fixed error in thumbnail regenation from wp-cli for a file renamed using Phoenix Media Rename


  • fixed “filename already present” error when many files could get the same name


  • fixed “filename already present” error when a file has been uploaded in a subfolder (thanks to @niwin for the help addressing the issue)


  • changed “rename from post” management
  • fixed some case of infinite loop during bulk rename


  • added option to serialize filename if a file with the target filename is present


  • grouped options “Sanitize filenames” and “Remove accents” and added integrity check


  • added option to convert filename to lowercase when the action “rename from post” or “rename and retitle from post” is selected


  • changed iterator in metadata deserialization (thanks to @alx359 for addressing the issue)


  • minor optimization in ShortPixel metadata management


  • added parameters to add constants to the beginning and end of file names


  • added termination to ajax code


  • prevented initialization of the plugin on frontend


  • added security check in ajax rename process


  • added translation support for title in settings page


  • added option to disable filename sanitization


  • fixed compatibility issue with Elementor


  • added option to create a 301 redirection when a file has been renamed. The option is disabled by default, to enable it visit the Phoenix Media Rename settings page. (thanks to @ortonom for the suggestion)
    Please Note: the free plugin Redirection is required to add and manage the 301 redirection


  • fixed minor issue in “option debug” management


  • fixed compatibility issue with WPML (many thanks to Diego Pereira for his help)


  • fixed issue when plugin is called via code from frontend


  • fixed compatibility issue with Archivarix External Images Importer


  • changed rename process management
  • added new option “debug mode”
  • pushed minimum required WordPress version to 5.0
  • pushed minimum required PHP version to 7.1


  • added new bulk operations “Rename from post” and “Rename and retitle from post”, that gets the name for the media files from the post they are attached to
  • changed database table creation logic (thanks to @rinatkhaziev for the contribution)


  • fixed issue with ShortPixel


  • fixed javascript error on single media page


  • changed filename textbox size in attachment page


  • fixed issue with older php versions


  • added support for filename serialization


  • added action ‘pmr_renaming_successful’


  • changed renaming error message to have more information about the source of the error


  • fixed error with old files stored in year- month- based subfolders (many thanks to @jockolad who addressed the issue)


  • fixed distribution error


  • fixed issue with media files organized in subfolders


  • fixed another issue with new big image management introduced in WordPress 5.3


  • fixed issue with new big image management introduced in WordPress 5.3
  • fixed issue with shortpixel image optimiser


  • popravljena zadana vrijednost za opciju sanitizacije akcenata


  • dodana opcija za upravljanje sanitizacijom akcenata u imenu datoteke


  • popravljen problem s multisite (puno hvala @synetech za popravak te stvari)


  • popravljena podrška lokalizaciji za poveznice i stranicu postavki na listi dodataka


  • dodana poveznica na stranicu postavki na listi dodataka


  • dodana stranica postavki


  • dodana podrška za elementor


  • promijenjeno upravljanje naslovima objava u grupnim radnjama


  • Popravljen problem s WPML


  • uklonjena nepotrebna php upozorenja iz log datoteke (zahvaljujući @alx359)


  • uklonjena nepotrebna php upozorenja iz log datoteke (zahvaljujući @alx359)


  • Popravljen problem s WPML


  • Popravljen problem s WP Compress dodatkom


  • Isključeno dugme pošalji tijekom grupnog preimenovanja
  • Dodana js minifikacija


  • Popravljena pogreška u Smart Slider ažuriranju prilagođenih tablica


  • Popravljena pogreška u Smart Slider ažuriranju prilagođenih tablica


  • Optimiziran sql za Smart Slider ažuriranje pametnih tablica


  • Popravljena pogreška u Smart Slider ažuriranju prilagođenih tablica


  • Dodana podrška za Smart Slider


  • popravljeno upozorenje s ajaxom na php 7


  • dodana podrška za ne-latin znakove u imenu datoteke


  • dodana sanitizacija imenima datoteka


  • dodana licenca za ikonu feniksa


  • dodana podrška za lokalizaciju


  • popravljeno korisničko ime autora


  • Početna inačica