woocommerce_valid_order_statuses_for_payment_complete

woocommerce_valid_order_statuses_for_payment_complete

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_valid_order_statuses_for_payment_complete') is found 1 times:

  • /includes/class-wc-order.php line 143
    			if ( WC()->session ) {
    				WC()->session->set( 'order_awaiting_payment', false );
    			}
    
    			if ( $this->has_status( apply_filters( 'woocommerce_valid_order_statuses_for_payment_complete', array( 'on-hold', 'pending', 'failed', 'cancelled' ), $this ) ) ) {
    				if ( ! empty( $transaction_id ) ) {
    					$this->set_transaction_id( $transaction_id );
    				}
    				if ( ! $this->get_date_paid( 'edit' ) ) {
    					$this->set_date_paid( time() );
    				}
    

See this hook used in plugins: