Skip to content

Instantly share code, notes, and snippets.

@sisaacrussell
Last active July 3, 2019 16:18
Show Gist options
  • Save sisaacrussell/3836f76e1ed0c1f726e47292f38a12a9 to your computer and use it in GitHub Desktop.
Save sisaacrussell/3836f76e1ed0c1f726e47292f38a12a9 to your computer and use it in GitHub Desktop.
Resolve conflict with YITH Product Addons and WooCommerce Subscriptions
<?php
/**
* Resolve conflict with YITH Product Addons and WooCommerce Subscriptions
* Fixes issue where renewal orders are left unpaid upon checkout and a new parent order and subscription is created.
*
* @author support@yith.com
*/
remove_filter( 'woocommerce_order_again_cart_item_data', array( 'YITH_WAPO_Frontend', 're_add_cart_item_data' ), 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment