Core Function
View Source on Trac ↗ wp_get_original_image_url()
wp_get_original_image_url( mixed $attachment_id ) Retrieves the URL to an original attachment image.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attachment_id int | Attachment post ID. Required |
Return Value
((string)
| false) Attachment image URL, false on error or if the attachment is not an image.
Function Information
Since Version
5.3.0
Source File
wp-includes/post.php
Advertisement