Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Created January 2, 2018 14:31
Show Gist options
  • Select an option

  • Save kreamweb/68b91c4eed3490164010c991be4b3013 to your computer and use it in GitHub Desktop.

Select an option

Save kreamweb/68b91c4eed3490164010c991be4b3013 to your computer and use it in GitHub Desktop.
<?php
if ( function_exists( 'YITH_YWRAQ_Order_Request' ) ) {
add_action( 'wp_loaded', 'ywraq_upsell_in_cart', 11);
function ywraq_upsell_in_cart() {
remove_filter( 'woocommerce_add_to_cart_validation', array(
YITH_YWRAQ_Order_Request(),
'cart_validation'
), 10, 2 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment