WC_Product::set_descriptionpublicWC 3.0.0

Set product description.

Method of the class: WC_Product{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Product = new WC_Product();
$WC_Product->set_description( $description );
$description(string) (required)
Product description.

Changelog

Since 3.0.0 Introduced.

WC_Product::set_description() code WC 9.9.4

public function set_description( $description ) {
	$this->set_prop( 'description', $description );
}