WordPress at a glance
function is not described

WC_Product_Data_Store_Interface::get_shipping_class_id_by_slug() public WC 1.0

Get shipping class ID by slug.

{} It's a method of the class: WC_Product_Data_Store_Interface{}

No Hooks.

Return

Int|false.

Usage

$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface();
$WC_Product_Data_Store_Interface->get_shipping_class_id_by_slug( $slug );
$slug(string) (required)
Shipping class slug.

Code of WC_Product_Data_Store_Interface::get_shipping_class_id_by_slug() WC 5.0.0

<?php
public function get_shipping_class_id_by_slug( $slug );