(src\api.php) Added to the autoship_qpilot_orders_update() callback function for the Autoship Orders endpoint. This filter can be used to adjust the REST request data coming in through the endpoint prior to the call to WC_REST_Orders_Controller::create_item(). Takes the updated and original request as parameters. 

add_filter( 'autoship_qpilot_orders_via_rest', 'autoship_qpilot_orders_update_via_rest_convert_fees_to_coupons', 10, 2 );

Still need help? Contact Us Contact Us