WC_Product::get_customs_commodity_code │ public │ WC 11.3.0

Gets the customs commodity code.

Method of the class: WC_Product{}

No Hooks.

Returns

string|null.

Usage

$WC_Product = new WC_Product();
$WC_Product->get_customs_commodity_code( $context );
$context(string)
View or edit context.
Default: 'view'

Changelog

Since 11.3.0 Introduced.

WC_Product::get_customs_commodity_code() code WC 11.3.0

public function get_customs_commodity_code( $context = 'view' ) {
	return $this->get_prop( 'customs_commodity_code', $context );
}