WC_Product_Attribute::set_name()publicWC 1.0

Set name (this is the attribute name or taxonomy).

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

Хуков нет.

Возвращает

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

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

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->set_name( $value );
$value(строка) (обязательный)
Attribute name.

Код WC_Product_Attribute::set_name() WC 8.7.0

public function set_name( $value ) {
	$this->data['name'] = $value;
}