wclt-functions.php
Table of Contents
- wclt_get_lead_time() : string
- Get the lead time for a product.
- wclt_get_lead_time_raw() : string
- Get the lead time for a product without the prefix or units.
Functions
wclt_get_lead_time()
Get the lead time for a product.
wclt_get_lead_time(WC_Product $product) : string
Parameters
- $product : WC_Product
-
The product.
Return values
string —The unformatted lead time string.
wclt_get_lead_time_raw()
Get the lead time for a product without the prefix or units.
wclt_get_lead_time_raw(WC_Product $product) : string
Parameters
- $product : WC_Product
-
The product.
Return values
string —The unformatted lead time string.