Created
September 17, 2013 14:55
-
-
Save egeorjon/6595465 to your computer and use it in GitHub Desktop.
WordPress: How to remove accents from the url when upload a media?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* From: http://www.geekpress.fr/wordpress/astuce/suppression-accents-media-1903/ | |
* | |
* How to remove accents from the url when upload a media | |
*/ | |
add_filter('sanitize_file_name', 'remove_accents' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment