WooCommerce Lead Time comes with a number of template functions which developers can use to customize the plugin.
This function can be used in your theme or plugin to retrieve the lead time for a specific product, passing the product as an argument.
WC_Product $product – The product object you wish to retrieve the lead time for.
String – The full lead time string include the prefix which is set in the global settings.
$product = wc_get_product( get_the_ID() ); $lead_time = wclt_get_lead_time( $product );