WC_Cart_Fees::__construct( WC_Cart $cart )

Constructor. Reference to the cart.


Description Description


Parameters Parameters

$cart

(Required) Cart object.


Top ↑

Source Source

File: includes/class-wc-cart-fees.php

	public function __construct( &$cart ) {
		if ( ! is_a( $cart, 'WC_Cart' ) ) {
			throw new Exception( 'A valid WC_Cart object is required' );
		}

		$this->cart = $cart;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.