Assets
in package
Register and enqueue the admin-specific stylesheets and JavaScript.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- enqueue_styles() : void
- Enqueue the stylesheets for the admin area.
- get_instance() : object
- Creates and/or returns the instance of this class.
- register_scripts() : void
- Register the JavaScript for the admin area.
- register_styles() : void
- Register the stylesheets for the admin area.
- __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_styles()
Enqueue the stylesheets for the admin area.
public
enqueue_styles() : 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 admin area.
public
register_scripts() : void
The asset must start with a leading slash. It is relative to the assets directory.
Tags
register_styles()
Register the stylesheets for the admin area.
public
register_styles() : void
The asset must start with a leading slash. It is relative to the assets directory.
Tags
__construct()
Initialise the class.
protected
__construct() : void