Conversation
supportHi, In copy_meta_fields_to_renewal_order which is called via the wcs_renewal_order_created hook you don’t return $renewal_order. This causes subsequent wcs_renewal_order_created hooks to receive a null value for $renewal_order. $renewal_order must be returned both in the early payment method check, but also at the end of the method. This is because WooCommerce Subscription calls apply_filters instead of do_action for wcs_renewal_order_created, which sends the output of the previous hook as arguments to the next. I’m not entirely sure if something has changed either within WordPress or within WooCommerce Subscriptions to alter this, but it is now causing an issue in our payment gateway (woo-vipps). I’ve had to temporarily lower our filter priority to 5 instead of 10.
Hi! Thanks for reporting this. This will be fixed in the next version.
Hi! Thanks for reporting this. This will be fixed in the next version.