WordPress at a glance
filter is not described

sanitize_file_name filter-hook . WP 2.8.0

Filters a sanitized filename string.

Usage

add_filter( 'sanitize_file_name', 'filter_function_name_2153', 10, 2 );
function filter_function_name_2153( $filename, $filename_raw ){
	// filter...

	return $filename;
}
$filename(string)
Sanitized filename.
$filename_raw(string)
The filename prior to sanitization.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

sanitize_file_name()
sanitize_file_name
wp-includes/formatting.php 2045
return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
wp-includes/formatting.php 2078
return apply_filters( 'sanitize_file_name', $filename, $filename_raw );

Where in WP core the hook is used WordPress

Usage not found.