Assets
in package
Register and enqueue the admin-specific stylesheets and JavaScript.
Tags
Table of Contents
Constants
- NOTICE_CONTAINER = 'notice.php'
- Admin notices container partial.
Properties
- $helper : Helper
- The instance of the helper class.
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
- $notice_container : string
- The fully qualified path to the admin notice container partial.
Methods
- enqueue_editor_styles() : void
- Enqueue styles within the editor.
- enqueue_scripts() : void
- Enqueue the JavaScript for the admin area.
- 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.
- get_inline_script() : string
- Get the inline javascript.
Constants
NOTICE_CONTAINER
Admin notices container partial.
protected
string
NOTICE_CONTAINER
= 'notice.php'
Tags
Properties
$helper
The instance of the helper class.
protected
Helper
$helper
Tags
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
$notice_container
The fully qualified path to the admin notice container partial.
protected
string
$notice_container
= ''
Tags
Methods
enqueue_editor_styles()
Enqueue styles within the editor.
public
enqueue_editor_styles() : void
Tags
enqueue_scripts()
Enqueue the JavaScript for the admin area.
public
enqueue_scripts() : void
Tags
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
Tags
get_inline_script()
Get the inline javascript.
protected
get_inline_script() : string
Tags
Return values
string —The inline javascript.