This plugin hasn’t been tested with the latest three major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

LH Image Renamer

Description

When you take photos with your digital camera and then upload them as attachments to a post or page their file name is not altered. This is not inintuitve as then you end upo with 100s of image files with names live IMG_1432.jpg

This plugin fixes that problem by appending a file safe string to the front the file name which is based on the post, page, or cpts slug or post title.

e.g. my-post-title-my-image-name.jpg

This will only accurr for images uploaded as attachments.

Installation

  1. Upload the entire ‘lh-image-renamer’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Installation Instructions
  1. Upload the entire ‘lh-image-renamer’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
What are the available options provided by this plugin?

There are no options, this is WordPress, so decisions not options

Im a developer, can I create a custom rule?

Yes. It’s easy.

You can filter the name used by using the filter built into this plugin:

add_filter( ‘lh_image_renamer_return_name_filter’, function($return, $file_object, $post_object, $file_name, $file_ext){

//do your thing

return $return;

}, 20 );

Contributors & Developers

“LH Image Renamer” is open source software. The following people have contributed to this plugin.

Contributors

Translate “LH Image Renamer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change log

1.00 July 05, 2017
* Initial Release

1.01 July 16, 2018
* Singleton pattern