WC_Product_Attribute::set_name()publicWC 1.0

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

Method of the class: WC_Product_Attribute{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->set_name( $value );
$value(string) (required)
Attribute name.

WC_Product_Attribute::set_name() code WC 9.4.2

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