Core Function
View Source on Trac ↗ _wp_relative_upload_path()
_wp_relative_upload_path( mixed $path ) Returns relative path to an uploaded file.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $path string | Full path to the file. Required |
Return Value
(string)
Relative path on success, unchanged path on failure.
Function Information
Since Version
2.9.0
Source File
wp-includes/post.php
Advertisement