Api
in package

Table of Contents

Properties

$commons_script_name  : mixed
$commons_styles_name  : mixed
$asset_registry  : mixed
$config  : mixed
$styles  : mixed

Methods

__construct()  : mixed
Api constructor.
enqueue_style()  : mixed
get_asset_url()  : string
get_path()  : mixed
register_external_script()  : mixed
register_script()  : mixed
Registers the provided script.
init()  : mixed

Properties

Methods

get_asset_url()

public get_asset_url([string $relative_path = '' ]) : string
Parameters
$relative_path : string = ''
Return values
string

register_external_script()

public register_external_script(mixed $handle, mixed $src, mixed $deps, mixed $version[, mixed $footer = true ]) : mixed
Parameters
$handle : mixed
$src : mixed
$deps : mixed
$version : mixed
$footer : mixed = true

register_script()

Registers the provided script.

public register_script(string $handle, string $relative_path[, array<string|int, mixed> $deps = array() ]) : mixed
Parameters
$handle : string
$relative_path : string
$deps : array<string|int, mixed> = array()

        
On this page

Search results