Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

auto complete order paid

add_action( 'woocommerce_payment_complete_order_status', 'wc_auto_complete_paid_order', 10, 3 );
function wc_auto_complete_paid_order( $status, $order_id, $order ) {
    return 'completed';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #auto #complete #order #paid
ADD COMMENT
Topic
Name
8+3 =