WC_Product::set_name()publicWC 3.0.0

Set product name.

Method of the class: WC_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Product = new WC_Product();
$WC_Product->set_name( $name );
$name(string) (required)
Product name.

Changelog

Since 3.0.0 Introduced.

WC_Product::set_name() code WC 8.7.0

public function set_name( $name ) {
	$this->set_prop( 'name', $name );
}