Last active
November 23, 2016 16:15
-
-
Save azizultex/084509d8545ca44548de37962badb073 to your computer and use it in GitHub Desktop.
Get WooCommerce Large Images list from Gallery
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
var gallery = document.getElementsByClassName('pp_gallery'); | |
var largeImages = gallery[0].getElementsByTagName('img'); | |
for (var i in largeImages) { | |
console.log(largeImages[i].src) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment