joeblackwaslike/woocommerce — comment on commit d2e525519f7df03411a64c48d5ab2a29e2878e1e
File:  line 0
By joeblackwaslike:

original credit to https://github.com/ralcus/woocommerce/commit/d35312fba83a8839033b71a45fedf7768269f351

I just tweaked it abit on my own to add conditional checking to re-register lightbox and implemented a variable to only perform the lightbox option check once.

Also fixed a unrelated minor typo in the word template