Assets
in package
Enqueue the stylesheet and JavaScript to support plugin specific functionality.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- enqueue_assets() : void
- Enqueue the resources for the public-facing side of the site.
- get_instance() : object
- Creates and/or returns the instance of this class.
- register_scripts() : void
- Register the JavaScript for the public-facing side of the site.
- __construct() : void
- Initialise the class.
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
enqueue_assets()
Enqueue the resources for the public-facing side of the site.
public
enqueue_assets() : void
Tags
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
register_scripts()
Register the JavaScript for the public-facing side of the site.
public
register_scripts() : void
The asset must start with a leading slash. It is relative to the assets directory.
Tags
__construct()
Initialise the class.
protected
__construct() : void