Theme_Compat implements Registerable, Service
Theme-specific overrides for WooCommerce Lead Time
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
- Service
- Marker interface to denote a service.
Table of Contents
- add_shop_page_spacing() : void
- Enqueue custom inline css to add spacing between the lead time and the product details/card.
- decode_htmlspecialchars_and_sanitize() : mixed
- register() : void
- Register this object with WordPress.
- shop_page_classes() : array<string|int, mixed>
- Add a new body class when the shop page display option is enabled.
Methods
add_shop_page_spacing()
Enqueue custom inline css to add spacing between the lead time and the product details/card.
public
add_shop_page_spacing() : void
This is enqueue for specific themes only.
wp_add_inline_style only works when attached to an existing stylesheet handle, so we create a dummy handle and then attach the css to the dummy handle.
Return values
void —decode_htmlspecialchars_and_sanitize()
public
decode_htmlspecialchars_and_sanitize(mixed $html) : mixed
Parameters
- $html : mixed
Return values
mixed —register()
Register this object with WordPress.
public
register() : void
Return values
void —shop_page_classes()
Add a new body class when the shop page display option is enabled.
public
shop_page_classes(array<string|int, mixed> $classes) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>