WC_Cart_Fees::__construct
Constructor. Reference to the cart.
Method of the class: WC_Cart_Fees{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Cart_Fees = new WC_Cart_Fees(); $WC_Cart_Fees->__construct( $deprecated );
- $deprecated(null)
- Deprecated since WooCommerce 8.2.0.
Default:null
Changelog
| Since 3.2.0 | Introduced. |
WC_Cart_Fees::__construct() WC Cart Fees:: construct code WC 10.7.0
public function __construct( $deprecated = null ) {
if ( isset( $deprecated ) ) {
wc_doing_it_wrong(
'new WC_Cart_Fees',
'You don\'t need to pass a cart parameter to the WC_Cart_Fees constructor anymore',
'8.2.0'
);
}
}