Ocasio Clean Image Filenames
Automatically sanitizes uploaded media file names, converting spaces to hyphens and removing special characters for better SEO.
by Kevin Ocasio · github.com/kevinocasio/ocasio-clean-image-filenames · website
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/kevinocasio/ocasio-clean-image-filenames/archive/refs/heads/main.zipLightweight WordPress plugin to automatically sanitize uploaded media filenames, converting spaces to hyphens and removing special characters for better SEO.
Overview
Messy image filenames like IMG_0042 (1) Copy!.PNG create ugly URLs and cause encoding issues. Ocasio Clean Image Filenames automatically converts file names to lowercase, replaces spaces and underscores with clean hyphens (-), and removes special characters upon upload.
Features
- Automatic Cleanup: Sanitize file names the instant they are uploaded.
- SEO-Optimized: Converts spaces and underscores to clean hyphens recommended by search engines.
- Zero Front-End Assets: Pure PHP execution with 0 bytes of extra CSS or JS loaded on public pages.
- Instant Dashboard Toggle: Manage and toggle the feature directly from the Ocasio Plugins -> Dashboard menu.
Installation
- Download
ocasio-clean-image-filenames.zipfrom Releases. - In your WordPress admin dashboard, navigate to Plugins -> Add New Plugin -> Upload Plugin.
- Choose the downloaded
.zipfile and click Install Now. - Click Activate Plugin.
- Check your settings under Ocasio Plugins -> Dashboard.
Author & Support
- Author: Kevin Ocasio
- Plugin Page: Ocasio Clean Image Filenames on KevinOcasio.com
- WordPress Plugins: Free WordPress Plugin Directory
- Software Portfolio: Live Projects & Digital Assets
- Tools & Resources: Recommended Tech Stack & Tools
- License: GPL-2.0-or-later