WC_Product::get_shipping_class_id() – Get shipping class ID.

You appear to be a bot. Output may be restricted

Description

Get shipping class ID.

Usage

$int = WC_Product::get_shipping_class_id( $context );

Parameters

$context
( string ) optional default: view – What the value is for. Valid values are view and edit.

Returns

int

Source

File name: woocommerce/includes/abstracts/abstract-wc-product.php
Lines:

1 to 3 of 3
  public function get_shipping_class_id( $context = 'view' ) {
    return $this->get_prop( 'shipping_class_id', $context );
  }
 

 View on GitHub View on Trac