SwedbankPay/swedbank-pay-woocommerce-checkout

Hooks stops working

Closed this issue · 2 comments

I'm using the actions 'woocommerce_order_status_changed' and 'woocommerce_order_status_completed' for som extra functionality, and when this plugin is activated they seem to be removed, because they are no longer being triggered.

Is there a way around this?

Mvh
//Mattias

aait commented

@MattiasKallio Our plugin doesn't remove all actions woocommerce_order_status_changed.
Only few:

		remove_action(
			'woocommerce_order_status_changed',
			'\SwedbankPay\Payments\WooCommerce\WC_Swedbank_Plugin::order_status_changed',
			10
		);
		remove_action(
			'woocommerce_order_status_changed',
			'\SwedbankPay\Checkout\WooCommerce\WC_Swedbank_Plugin::order_status_changed',
			10
		);