Set WooCommerce order status when order is created from processing to pending
问题 When a woocommerce order is created the status of the order is "processing". I need to change the default order-status to "pending". How can I achieve this? 回答1: The default order status is set by the payment method or the payment gateway. You could try to use this custom hooked function, but it will not work (as this hook is fired before payment methods and payment gateways) : add_action( 'woocommerce_checkout_order_processed', 'changing_order_status_before_payment', 10, 3 ); function