WC_Shipping_Rate::set_taxes()
Set rate taxes.
{} It's a method of the class: WC_Shipping_Rate{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->set_taxes( $taxes );
- $taxes(array) (required)
- List of taxes applied to shipping rate.
Changelog
Since 3.2.0 | Introduced. |
Code of WC_Shipping_Rate::set_taxes() WC Shipping Rate::set taxes WC 6.7.0
public function set_taxes( $taxes ) { $this->data['taxes'] = ! empty( $taxes ) && is_array( $taxes ) ? $taxes : array(); }