Frontend_Scripts implements Registerable, Service
Handles the registering of the front-end scripts and stylesheets. Also creates the inline CSS (if required) for the product tables.
Tags
Interfaces, Classes and Traits
- Registerable
- Service
Table of Contents
- SCRIPT_HANDLE = 'wc-bulk-variations'
- $script_version : mixed
- __construct() : mixed
- Constructor.
- load_photoswipe_template() : mixed
- maybe_add_photoswipe() : mixed
- register() : mixed
- Register the scripts & styles for an individual bulk variations table.
- register_table_scripts() : mixed
Constants
SCRIPT_HANDLE
public
mixed
SCRIPT_HANDLE
= 'wc-bulk-variations'
Properties
$script_version
private
mixed
$script_version
Methods
__construct()
Constructor.
public
__construct(string $script_version) : mixed
Parameters
- $script_version : string
-
The script version for registering the assets.
Return values
mixed —load_photoswipe_template()
public
static load_photoswipe_template() : mixed
Return values
mixed —maybe_add_photoswipe()
public
maybe_add_photoswipe(mixed $button, mixed $product) : mixed
Parameters
- $button : mixed
- $product : mixed
Return values
mixed —register()
Register the scripts & styles for an individual bulk variations table.
public
register() : mixed
Return values
mixed —register_table_scripts()
public
register_table_scripts() : mixed