wp_get_original_image_url


wp_get_original_image_url ( $attachment_id )

Parameters:
  • (int) $attachment_id Attachment post ID.
Returns:
  • (string|false) Attachment image URL, false on error or if the attachment is not an image.
Defined at:

Description

Retrieve the URL to an original attachment image.

Similar to wp_get_attachment_url() however some images may have been processed after uploading. In this case this function returns the URL to the originally uploaded image file.

Related Functions

wp_get_original_image_path, wp_get_original_referer, wp_get_additional_image_sizes, wp_get_attachment_image_url, wp_get_missing_image_subsizes

Top Google Results

User discussions

wpseek mobile