wp_get_original_image_path


wp_get_original_image_path ( $attachment_id )

Parameters:
  • (int) $attachment_id Attachment ID.
Returns:
  • (string|false) Path to the original image file or false if the attachment is not an image.
Defined at:

Description

Retrieves the path to an uploaded image.

Similar to get_attached_file() however some images may have been processed after uploading to make them "web ready". In this case this function returns the path to the originally uploaded image file.

Related Functions

wp_get_original_referer, wp_get_additional_image_sizes, wp_get_single_post, get_home_path, wp_restore_image

Top Google Results

User discussions

wpseek mobile