Method | Description | |
---|---|---|
get_classname_from_product_type ( string $product_type ) : string | false | Create a WC coding standards compliant class name e.g. WC_Product_Type_Class instead of WC_Product_type-class. | |
get_product ( mixed $product_id = false, array $deprecated = [] ) : WC_Product | boolean | Get a product. | |
get_product_type ( integer $product_id ) : string | false | Get the product type for a product. |
Method | Description | |
---|---|---|
get_product_id ( mixed $product ) : integer | boolean | Get the product ID depending on what was passed. |
public static get_classname_from_product_type ( string $product_type ) : string | false | ||
$product_type | string | |
return | string | false |
public static get_product_type ( integer $product_id ) : string | false | ||
$product_id | integer | |
return | string | false |