Filter hook 'sanitize_file_name'

in WP Core File wp-includes/formatting.php at line 2071

Description

Filters the list of characters to remove from a filename.

Occurrences

Filename Line Number
wp-includes/formatting.php 2071
wp-includes/formatting.php 2111

Parameters

Type Name Description
string[] $special_chars Array of characters to remove.
string $filename_raw The original filename to be sanitized.

PHP Doc

/**
	 * Filters the list of characters to remove from a filename.
	 *
	 * @since 2.8.0
	 *
	 * @param string[] $special_chars Array of characters to remove.
	 * @param string   $filename_raw  The original filename to be sanitized.
	 */