A WordPress-centric search engine for devs and theme authors



sanitize_file_name ›

Since2.8.0
Deprecatedn/a
apply_filters( 'sanitize_file_name', $filename, $filename_raw )
Parameters: (2)
  • (string) $filename Sanitized filename.
    Required: Yes
  • (string) $filename_raw The filename prior to sanitization.
    Required: Yes
Defined at:
Codex:

Filters a sanitized filename string.





Source

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