W3cubDocs

/WordPress

apply_filters( 'sanitize_file_name', string $filename, string $filename_raw )

Filters a sanitized filename string.

Parameters

$filename

(string) Sanitized filename.

$filename_raw

(string) The filename prior to sanitization.

Source

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

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