A WordPress-centric search engine for devs and theme authors



wp_relative_upload_path ›

Since2.9.0
Deprecatedn/a
apply_filters( '_wp_relative_upload_path', $new_path, $path )
Parameters: (2)
  • (string) $new_path Relative path to the file.
    Required: Yes
  • (string) $path Full path to the file.
    Required: Yes
Defined at:
Codex:

Filters the relative path to an uploaded file.





Source

return apply_filters( '_wp_relative_upload_path', $new_path, $path );