WordPress at Your Fingertips
function is not described

WC_Shipping_Rate::set_label() public WC 3.2.0

Set rate label.

{} 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_label( $label );
$label(string) (required)
Shipping rate label.

Changelog

Since 3.2.0 Introduced.

Code of WC_Shipping_Rate::set_label() WC 5.7.1

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