WC_Product::set_customs_description │ public │ WC 11.3.0

Sets the customs description.

Method of the class: WC_Product{}

No Hooks.

Returns

void. Nothing (null).

Usage

$WC_Product = new WC_Product();
$WC_Product->set_customs_description( $description );
$description(string|null) (required)
Plain text description, or null to clear it.

Changelog

Since 11.3.0 Introduced.

WC_Product::set_customs_description() code WC 11.3.0

public function set_customs_description( $description ) {
	$this->set_prop(
		'customs_description',
		$this->get_object_read() ? CustomsDataValidator::normalize_description( $description ) : CustomsDataValidator::normalize_stored_value( 'customs_description', $description )
	);
}