wp_get_original_image_path ( $attachment_id )
- (int) $attachment_id Attachment ID.
- (string|false) Path to the original image file or false if the attachment is not an image.
- Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Retrieves the path to an uploaded image.
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.