WC_Shipping_Rate::set_taxes
Set rate taxes.
Method of the class: WC_Shipping_Rate{}
No Hooks.
Returns
null. Nothing (null).
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. |
WC_Shipping_Rate::set_taxes() WC Shipping Rate::set taxes code WC 10.7.0
public function set_taxes( $taxes ) {
$this->data['taxes'] = ! empty( $taxes ) && is_array( $taxes ) ? $taxes : array();
}