My new button is in the wrong place

I figured it out, it was a pretty simple oversight actually. I forgot the the number after the add or remove action represents priority and by putting the same priority I was messing things up. So i just removed the priority to the remove add to cart action. So my code now looks like this … Read more

How to Get WordPress custom post data in WooCommerce product meta panel? [closed]

My answer use 3 steps too : Step 1 : adding a new tab on the list add_filter(“woocommerce_product_data_tabs”, function ($product_data_tabs) { $product_data_tabs[“newTabId”] = [ “label” => “Hello 1”, “target” => “htmlIdOfTheBox”, “class” => [], ]; return $product_data_tabs; }); Step 2 : preparing the html box for this new tab add_action(“woocommerce_product_data_panels”, function () { ?> <div … Read more