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_3854', 10, 2 );
function filter_function_name_3854( $filename, $filename_raw ){
	// filter...

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

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

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 );

Где используется хук в ядре WordPress

Использование не найдено.