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

Filters the list of characters to remove from a filename.

Parameters Parameters


(string[]) Array of characters to remove.


(string) The original filename to be sanitized.

Top ↑

Source Source

File: wp-includes/formatting.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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