apply_filters( ‘sanitize_file_name_chars’, string[] $special_chars, string $filename_raw )

In this article

Filters the list of characters to remove from a filename.

Parameters

$special_charsstring[]
Array of characters to remove.
$filename_rawstring
The original filename to be sanitized.

Source

$special_chars = apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.