📅  最后修改于: 2022-03-11 14:53:49.590000             🧑  作者: Mango
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';
}