Home / Lowercase Filenames for Uploads
Duplicate Snippet

Embed Snippet on Your Site

Lowercase Filenames for Uploads

Make all the filenames of new uploads to lowercase after you enable this snippet.

900+
Code Preview
php
<?php
add_filter( 'sanitize_file_name', 'mb_strtolower' );

Comments

Add a Comment