pfeifferNet

Assets
in package

Register and enqueue the admin-specific stylesheets and JavaScript.

Tags
since
1.0.0
since
5.5.0

Inherit standard singleton class.

since
5.10.0

Refactor to use common approach to assets.

since
5.11.0

Deprecate global singleton.

since
6.3.0

Use common asset functions.

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
since
5.11.0

Methods

enqueue_styles()

Enqueue the stylesheets for the admin area.

public enqueue_styles() : void
Tags
since
1.0.0

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
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
since
1.0.0
since
5.9.0

Changed cache busting method to use file mtime.

uses
get_asset_path()
uses
get_asset_url()
uses
get_asset_version()

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
since
1.0.0
since
5.9.0

Changed cache busting method to use file mtime.

uses
get_asset_path()
uses
get_asset_url()
uses
get_asset_version()

__construct()

Initialise the class.

protected __construct() : void
Tags
since
5.11.0

        
On this page

Search results