WC_Shipping_Rate::set_label()publicWC 3.2.0

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() code WC 8.7.0

public function set_label( $label ) {
	$this->data['label'] = (string) $label;
}