Yesterday I had to find a way to show or remove specific options from the product variables dropdown menu.My first thought was hiding using javascript or CSS, but in the end, some browsers (like the iPhone’s safari) keep show those.If …

Remove, not hide, options from variables dropdown menu in wooCommerece’s product pages Read more »

Tested on php 7.4 wp 5.5.1 wooCommerce 4.5.2 The following code add a select box on each product variation It can be called on the product page by:var_dump(get_post_meta( $available_variations[$key][‘variation_id’], ‘licence_ppl’, true )); Note that in this case i’m in a …

Add custom fields to variation in wooCommerce admin panel Read more »