Why You Need It
WordPress preserves the original file name, which may contain spaces, special characters, or non-ASCII characters. Clean filenames create better URLs and are more SEO-friendly.
How to Enable this Feature
Step 1: Navigate to Settings
Click into the Classic Monks plugin settings, then the Performance tab, Media Enhancements subtab.
Step 2: Enable the Feature
Toggle on the feature.

Step 3: Save and Test
Click Save Changes. Test on the frontend.
Common Use Cases
SEO optimization
Clean filenames create shorter, more descriptive URLs that search engines prefer.
URL compatibility
Special characters in URLs can cause encoding issues on some servers.
Developer integration
This feature registers 1 WordPress hook in media/media-clean-filenames.php:
Filters:
sanitize_file_namecallsCM_Clean_Image_Filenames::clean_filename()(Converts accent characters to ASCII equivalents (priority 10))
// Hooked in media/media-clean-filenames.php
add_filter( 'sanitize_file_name', 'CM_Clean_Image_Filenames::clean_filename' );
The feature modifies WordPress behavior by registering or removing hooks. Disabling it reverses those changes and WordPress returns to its default behavior.
Before you enable this feature
- Test on staging first to verify no conflicts with your theme or other plugins
- Check dependent plugins that may rely on the functionality being modified
- Monitor after enabling for any unexpected behavior on the frontend
How it works under the feature
This feature runs during the WordPress initialization phase. When enabled, its PHP code registers hooks that modify specific WordPress behaviors. The changes are non-destructive and reversible.
No database schema changes are made. The feature state is stored as a boolean value in the wp_options table and can be toggled at any time from the admin settings.