WC_Shipping_Rate::set_label()
Set rate label.
Method of the class: WC_Shipping_Rate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->set_label( $label );
- $label(string) (required)
- Shipping rate label.
Changelog
Since 3.2.0 | Introduced. |
WC_Shipping_Rate::set_label() WC Shipping Rate::set label code WC 9.7.1
public function set_label( $label ) { $this->data['label'] = (string) $label; }