This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $product; | |
$attachment_ids = $product->get_gallery_attachment_ids(); | |
foreach( $attachment_ids as $attachment_id ) | |
{ | |
//Get URL of Gallery Images - default wordpress image sizes | |
echo $Original_image_url = wp_get_attachment_url( $attachment_id ); | |
echo $full_url = wp_get_attachment_image_src( $attachment_id, 'full' )[0]; | |
echo $medium_url = wp_get_attachment_image_src( $attachment_id, 'medium' )[0]; |