WC_Product_Variation::get_customs_commodity_code
Gets the commodity code, inheriting from the parent in view context.
Method of the class: WC_Product_Variation{}
No Hooks.
Returns
string|null.
Usage
$WC_Product_Variation = new WC_Product_Variation(); $WC_Product_Variation->get_customs_commodity_code( $context );
- $context(string)
- View or edit context.
Default:'view'
Changelog
| Since 11.3.0 | Introduced. |
WC_Product_Variation::get_customs_commodity_code() WC Product Variation::get customs commodity code code WC 11.3.0
public function get_customs_commodity_code( $context = 'view' ) {
return $this->get_customs_prop( 'customs_commodity_code', $context );
}