Plugin info

Total downloads: 2,870
Active installs: 80
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/11/2021 (1602 days ago)
Added to WordPress: 3/30/2019 (6 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 5.8.12
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1602 days ago • 1 reviews

22/100

Is Media Auto Hash Rename abandoned?

Possibly abandoned (last update 1602 days ago).

Compatibility

Requires WordPress: 4.0
Tested up to: 5.8.12
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Media Cleaner: Clean your WordPress!
Rating 4.6/5 (719 reviews)Active installs 90,000
Download Attachments
Rating 4.5/5 (46 reviews)Active installs 9,000
WP-DownloadManager
Rating 4.0/5 (38 reviews)Active installs 3,000
WordPress File Monitor
Rating 4.9/5 (12 reviews)Active installs 1,000
m1.DownloadList
Rating 4.7/5 (21 reviews)Active installs 400

Description

Media Auto Hash Rename will rename any file (specific files can be ignored by file extension) during upload, with unique, low collision hashes. Hash characters and length can be configured for even lower collision rate.

More information please visit my site.

This plugin provides no configuration GUI to make it more easier to maintain with the future WordPress updates.

Currently there’re 3 constants you can configure in your wp-config.php, I recommend WP-CLI for maintaining these constants.

  • MAHR_LENGTH: length of the random hashes, (default to 8), longer can help reduce collision. Hashes at the length of 8 can be collision-free at the scale of 50,000 images).
  • MAHR_CHARS: Characters used in hashes, default to 0123456789abcdefghijklmnopqrstuvwxyz_, You can add more characters like uppercased alphabelts to dramatically reduce the collision without increasing the length of your filenames. But please note that this option can be dangerous if you’re not familer with general URI encoding. So if you don’t know what characters are allowed in a filename, just keep it untouched and use the default option.
  • MAHR_IGNORE: File extensions to be ignored, default to pdf, zip, you can define a comma delimited list of file extensions to bypass renaming process of this plugin. All files that has the file extension you defined in the list will be ignored. Please note that:
    • File extensions must be defined without the leading peroid, for example: 'pdf, 7z, bmp' works, '.pdf, .7z, .bmp' does not.
    • With ('pdf, zip') or without ('pdf,zip') space both work.
    • If you define your own ignore list, default ignore list will be discarded. For example, if you define '7z', then 'pdf, zip' will be processed during upload. You need to reapply these extensions with your own: '7z, pdf, zip'.
    • If you don’t need to ignore any files by its extension. define an empty array [] (without quotes) to this option: define( 'MAR_IGNORE', [] ); to force process PDF and ZIP files.

Installation

WordPress (Also works on multisite enabled instance):

  1. Upload the extracted files to the /wp-content/plugins/ directory, or just install this plugin from your WordPress backend.
  2. In ‘Plugins’ page, choose ‘Activate’

Frequently Asked Questions

What if I deactivate this plugin?

This pluigin, doesn’t not write any extra data into your database. The files renamed by this plugin will still work after you deactivate this plugin.

Review feed

No reviews available

Screenshots

  1. What filenames look like after renaming.

    What filenames look like after renaming.

Changelog

1.0.1

  • Compatibility check for 5.8, nothing new, just bump version to tell everyone this plugin still works.

1.0.0

  • First release