Core Function
View Source on Trac ↗ _wp_get_attachment_relative_path()
_wp_get_attachment_relative_path( mixed $file ) Gets the attachment path relative to the upload directory.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $file string | Attachment file name. Required |
Return Value
(string)
Attachment path relative to the upload directory.
Function Information
Since Version
4.4.1
Source File
wp-includes/media.php
Advertisement