apply_filters( 'sanitize_file_name_chars', string[] $special_chars, string $filename_raw )

Filters the list of characters to remove from a filename.

Parameters

$special_chars

(string[]) Array of characters to remove.

$filename_raw

(string) The original filename to be sanitized.

Source

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_file_name_chars