Theme_Integration implements Service, Registerable, Conditional
Handles compatibility and integration of WPT with specific themes.
Tags
Interfaces, Classes and Traits
- Service
- Registerable
- Conditional
Table of Contents
- $theme : mixed
- __construct() : mixed
- add_theme_inline_script() : mixed
- is_required() : mixed
- kallyas_ensure_valid_add_to_cart_fragments() : mixed
- register() : mixed
- uncode_child_add_to_cart_class() : string
- Add the standard 'single_add_to_cart_button' class as this is required for the add to cart buttons to work.
- woodmart_load_quantity_script() : mixed
Properties
$theme
private
mixed
$theme
Methods
__construct()
public
__construct() : mixed
Return values
mixed —add_theme_inline_script()
public
add_theme_inline_script() : mixed
Return values
mixed —is_required()
public
is_required() : mixed
Return values
mixed —kallyas_ensure_valid_add_to_cart_fragments()
public
kallyas_ensure_valid_add_to_cart_fragments(mixed $fragments) : mixed
Parameters
- $fragments : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —uncode_child_add_to_cart_class()
Add the standard 'single_add_to_cart_button' class as this is required for the add to cart buttons to work.
public
uncode_child_add_to_cart_class(string $class) : string
Parameters
- $class : string
-
The cart button class
Return values
string —The cart button class
woodmart_load_quantity_script()
public
woodmart_load_quantity_script(Table_Args $args) : mixed
Parameters
- $args : Table_Args