File Name Hasher
Automatically renames uploaded files/images in WordPress to a unique hashed filename.
★ 1stars
7composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/devuri/wp-filename-hasher/archive/refs/heads/main.zipAlso on Packagist as devuri/wp-filename-hasher:
composer require devuri/wp-filename-hasherFrom the readme
File Name Hasher Plugin
Description
The File Name Hasher plugin automatically renames uploaded files (images and PDFs) in WordPress to unique, hashed filenames. This helps to avoid conflicts with existing filenames and enhances security by generating unpredictable names for uploaded files.
Features
- Automatically renames uploaded images and PDFs to hashed filenames.
- Ensures unique filenames for each uploaded file.
- Enhances security by making filenames unpredictable.
- Only hashes specific file types (images and PDFs), leaving other file types with their original names.
Installation
1. Download the File Name Hasher plugin.
2. Extract the plugin files to the wp-content/plugins/ directory of your WordPress installation.
3. Activate the plugin through the 'Plugins' menu in WordPress.
Usage
Once activated, the plugin will automatically rename any image or PDF uploaded through the WordPress media uploader. No further configuration is required.
How It Works
1. Initialization: The plugin hooks into the wphandleuploadprefilter filter during its construction.
2. File Type Check: When a file is uploaded, the plugin checks the file's extension to see if it matches one of the all
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.