wpseek.com
A WordPress-centric search engine for devs and theme authors



sanitize_file_name_chars › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw )
Parameters: (2)
  • () special_chars Array of characters to remove.
    Required: Yes
  • () filename_raw The original filename to be sanitized.
    Required: Yes
Defined at:
Codex:

Filters the list of characters to remove from a filename.





Source

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