apply_filters( ‘sanitize_file_name’, string $filename, string $filename_raw )

In this article

Filters a sanitized filename string.

Parameters

$filenamestring
Sanitized filename.
$filename_rawstring
The filename prior to sanitization.

Source

return apply_filters( 'sanitize_file_name', $filename, $filename_raw );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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