Woocommerce: hide product according to ip / geolocation

Contents

You can put PHP snippets at the end of the child theme functions.php file (before “?>” for those who have it). CSS, however, gets into your son or daughter theme style.css file. Make certain you realize your work when editing such files – if you want more guidance, please check out my free video tutorial “Where you can Place WooCommerce Personalization?”

Woocommerce: hide product according to ip / geolocation your work

Performs this snippet (still) work?

Please tell me within the comments if everything labored not surprisingly. I’d gladly revise the snippet should you report otherwise (please provide screenshots). I’ve tested this code with Storefront theme, the WooCommerce version in the above list along with a WordPress-friendly hosting on PHP 7+.

If you feel this code saved you time & money, please join other Business Bloomer supporters and acquire one year of WooCommerce benefits. Thanks ahead of time 🙂

Need Assistance with WooCommerce Personalization

Woocommerce: hide product according to ip / geolocation gladly revise the

Juice WRLD, Seezyn – Hide (Lyrics) (Spider-Man: Into the Spider-Verse)