API Documentation
Namespaces
Interfaces, Classes and Traits
- WC_Settings_Additional_Field_Types
- Additional field types for WooCommerce settings pages.
- WC_Barn2_Plugin_Promo
- Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.
Table of Contents
- edd_hidden_callback() : mixed
- edd_barn2_license_callback() : mixed
- 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
edd_hidden_callback()
edd_hidden_callback(mixed $args) : mixed
Parameters
- $args : mixed
Return values
mixed —edd_barn2_license_callback()
edd_barn2_license_callback(mixed $args) : mixed
Parameters
- $args : mixed
Return values
mixed —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.