WC_Order_Item_Shipping::set_method_title()publicWC 1.0

Set method title.

Метод класса: WC_Order_Item_Shipping{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Order_Item_Shipping = new WC_Order_Item_Shipping();
$WC_Order_Item_Shipping->set_method_title( $value );
$value(строка) (обязательный)
Value to set.

Код WC_Order_Item_Shipping::set_method_title() WC 8.7.0

public function set_method_title( $value ) {
	$this->set_prop( 'name', wc_clean( $value ) );
	$this->set_prop( 'method_title', wc_clean( $value ) );
}