woocommerce_order_needs_payment

woocommerce_order_needs_payment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_order_needs_payment') is found 1 times:

  • /includes/class-wc-order.php line 1788
    		 * @param WC_Order $order                Order object.
    		 * @since 2.7.0
    		 */
    		$valid_order_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( OrderStatus::PENDING, OrderStatus::FAILED ), $this );
    		return apply_filters( 'woocommerce_order_needs_payment', ( $this->has_status( $valid_order_statuses ) && $this->get_total() > 0 ), $this, $valid_order_statuses );
    	}
    
    	/**
    	 * See if the order needs processing before it can be completed.
    	 *
    	 * Orders which only contain virtual, downloadable items do not need admin