WC_Product::get_shipping_class_id()
Get shipping class ID.
Method of the class: WC_Product{}
No Hooks.
Return
Int
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_shipping_class_id( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Product::get_shipping_class_id() WC Product::get shipping class id code WC 8.7.0
public function get_shipping_class_id( $context = 'view' ) { return $this->get_prop( 'shipping_class_id', $context ); }