<?php
/*
Plugin Name: Extended sanitize filename
Plugin URI:
Description: Replace and/or remove accents and other special characters in filenames on upload
Version: 1
Author: Hippies
Author URI: http://hippies.se
*/
add_filter( 'sanitize_file_name', 'extended_sanitize_file_name', 10, 2 );
function extended_sanitize_file_name( $filename ) {
$sanitized_filename = remove_accents( $filename );
return $sanitized_filename;
}