Code-Snippets-Functions/Execute a function on a child site/WooCommerce/automatically-complete-processing-orders.txt

5 lines
176 B
Text

add_filter( 'woocommerce_payment_complete_order_status', 'wc_autocomplete_processing_orders', 9999 );
function wc_autocomplete_processing_orders() {
return 'completed';
}