Core Function
View Source on Trac ↗ wp_get_original_image_path()
wp_get_original_image_path( mixed $attachment_id, mixed $unfiltered = false ) Retrieves the path to an uploaded image file.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attachment_id int | Attachment ID. Required |
| $unfiltered bool | Optional. Passed through to `get_attached_file()`. Default false. |
Return Value
((string)
| false) Path to the original image file or false if the attachment is not an image.
Function Information
Since Version
5.3.0
Source File
wp-includes/post.php
Advertisement