vendidero / woocommerce-germanized

Adapt WooCommerce to the German Market with Germanized for WooCommerce
https://vendidero.de/woocommerce-germanized
Other
51 stars 41 forks source link

remove action from WooCommerce Product Addons compatibility #168

Closed EhrhardtDa closed 2 years ago

EhrhardtDa commented 2 years ago

https://github.com/vendidero/woocommerce-germanized/blob/632b349e9526706832191562ee466b2ffec81ec4/includes/compatibility/class-wc-gzd-compatibility-woocommerce-product-addons.php#L23

I wan't to disable this action via my child-themes functions.php , I would be happy about some help.

Why do I need this? Because I've moved the position of the product addons totals, so it won't be displayed within the woocommerce_product_addons_end hook.

dennisnissle commented 2 years ago

E.g. via:

remove_action( 'woocommerce_product_addons_end', array( WC_germanized()->get_compatibility( 'woocommerce-product-addons' ), 'shopmarks' ), 11 ); 

Cheers