On this page
apply_filters( 'sanitize_file_name', string $filename, string $filename_raw )
Filters a sanitized filename string.
Parameters
$filenamestring-
Sanitized filename.
$filename_rawstring-
The filename prior to sanitization.
Source
File: wp-includes/formatting.php. View all references
return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
Related
Used By
| Used By | Description |
|---|---|
| sanitize_file_name() wp-includes/formatting.php | Sanitizes a filename, replacing whitespace with dashes. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_file_name