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 Product Data Store Interface::get shipping class id by slug WC 5.0.0
public function get_shipping_class_id_by_slug( $slug );