Skip to content

Instantly share code, notes, and snippets.

@mi-ca
Created February 18, 2014 15:59
Show Gist options
  • Save mi-ca/9073770 to your computer and use it in GitHub Desktop.
Save mi-ca/9073770 to your computer and use it in GitHub Desktop.
remove accent on uploaded WP files
<?php
// Add to functions.php
// REMOVE ACCENTS on uploaded WP files
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