1. WooCommerce Lead Time
  2. Developer Documentation

Actions and Filters

WooCommerce Lead Time comes with some filters which allow you to customize the plugin's behavior.

Please note that this code is aimed at developers and if you don't know how to use it then you should ask your developer. If you don't have one, we recommend posting a job on Codeable. We have partnered with them to provide plugin customizations for our customers.

We've partnered with Codeable to provide our customers with expert help if required.

Filters

wclt_disable_default_output

Use this to disable the default output of the lead time on the single product page.

add_filter( 'wclt_disable_default_output', '__return_true' );

wclt_theme_compatibility_stock_escape

Use the filter to disable the escaping and sanitization of the stock status html. While this may be required for the majority of themes, some themes & plugins may need to add custom functionality with markup that is stripped out by wp_kses_post.

add_filter( 'wclt_theme_compatibility_stock_escape', '__return_false' );

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.