<?php
/**
* Fix to remove the conflict between YITH WooCommerce Request a Quote and WooCommerce Subscription
* when a request of quote is sent.
*/
add_action('ywraq_before_create_order', 'ywraq_fix_woocommerce_subscription_conflict');
function ywraq_fix_woocommerce_subscription_conflict(){
remove_filter( 'woocommerce_payment_complete_order_status', 'WC_Subscriptions_Order::maybe_autocomplete_order', 10 );
}