Title: LH Image Renamer
Author: shawfactor
Published: <strong>July 11, 2017</strong>
Last modified: August 4, 2022

---

Search plugins

![](https://ps.w.org/lh-image-renamer/assets/banner-772x250.png?rev=1694171)

This plugin **hasn’t been tested with the latest 3 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.

![](https://ps.w.org/lh-image-renamer/assets/icon-256x256.png?rev=1694171)

# LH Image Renamer

 By [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Download](https://downloads.wordpress.org/plugin/lh-image-renamer.zip)

 * [Details](https://wordpress.org/plugins/lh-image-renamer/#description)
 * [Reviews](https://wordpress.org/plugins/lh-image-renamer/#reviews)
 *  [Installation](https://wordpress.org/plugins/lh-image-renamer/#installation)
 * [Development](https://wordpress.org/plugins/lh-image-renamer/#developers)

 [Support](https://wordpress.org/support/plugin/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.

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-image-renamer/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-image-renamer/).**

## 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

### 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 );

### What is something does not work?

LH Image Renamer, and all [https://lhero.org](https://wordpress.org/plugins/lh-image-renamer/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists please leave a post in the support forum: [https://wordpress.org/support/plugin/lh-image-renamer/](https://wordpress.org/support/plugin/lh-image-renamer/).
I look there regularly and resolve most queries.

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[Translate “LH Image Renamer” into your language.](https://translate.wordpress.org/projects/wp-plugins/lh-image-renamer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lh-image-renamer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/lh-image-renamer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/lh-image-renamer/)
by [RSS](https://plugins.trac.wordpress.org/log/lh-image-renamer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

**1.00 July 05, 2017**
 * Initial Release

**1.01 July 16, 2018**
 * Singleton pattern

## Meta

 *  Version **1.01**
 *  Last updated **4 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.0.11**
 * Tags
 * [file](https://wordpress.org/plugins/tags/file/)[file rename](https://wordpress.org/plugins/tags/file-rename/)
   [rename](https://wordpress.org/plugins/tags/rename/)[renaming](https://wordpress.org/plugins/tags/renaming/)
   [upload](https://wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://wordpress.org/plugins/lh-image-renamer/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/lh-image-renamer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lh-image-renamer/reviews/)

## Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lh-image-renamer/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://lhero.org/portfolio/lh-image-renamer/)