WPScriptStyleTest
in package
implements
WPScriptStyleBase
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $_enqueuedScripts : array<string|int, mixed>
- $_enqueuedStyles : array<string|int, mixed>
- $_localizedScripts : array<string|int, mixed>
- $_registeredScripts : array<string|int, mixed>
- $_registeredStyles : array<string|int, mixed>
- enqueueScript() : mixed
- enqueueStyle() : mixed
- getEnqueuedScripts() : array<string|int, mixed>
- getEnqueuedStyles() : array<string|int, mixed>
- getLocalizedScripts() : array<string|int, mixed>
- getRegisteredScripts() : array<string|int, mixed>
- getRegisteredStyles() : array<string|int, mixed>
- localizeScript() : bool
- registerScript() : bool
- registerStyle() : bool
- getNewScriptArray() : array<string|int, mixed>
- getNewStyleArray() : array<string|int, mixed>
Properties
$_enqueuedScripts
private
array<string|int, mixed>
$_enqueuedScripts
= []
$_enqueuedStyles
private
array<string|int, mixed>
$_enqueuedStyles
= []
$_localizedScripts
private
array<string|int, mixed>
$_localizedScripts
= []
$_registeredScripts
private
array<string|int, mixed>
$_registeredScripts
= []
$_registeredStyles
private
array<string|int, mixed>
$_registeredStyles
= []
Methods
enqueueScript()
public
enqueueScript(string $handle[, string $src = '' ][, array<string|int, mixed> $deps = [] ][, string|bool|null $ver = false ][, bool $inFooter = false ]) : mixed
Parameters
- $handle : string
- $src : string = ''
- $deps : array<string|int, mixed> = []
- $ver : string|bool|null = false
- $inFooter : bool = false
Tags
Return values
mixed —enqueueStyle()
public
enqueueStyle(string $handle[, string $src = '' ][, array<string|int, mixed> $deps = [] ][, string|bool|null $ver = false ][, string $media = 'all' ]) : mixed
Parameters
- $handle : string
- $src : string = ''
- $deps : array<string|int, mixed> = []
- $ver : string|bool|null = false
- $media : string = 'all'
Tags
Return values
mixed —getEnqueuedScripts()
public
getEnqueuedScripts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getEnqueuedStyles()
public
getEnqueuedStyles() : array<string|int, mixed>
Return values
array<string|int, mixed> —getLocalizedScripts()
public
getLocalizedScripts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRegisteredScripts()
public
getRegisteredScripts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRegisteredStyles()
public
getRegisteredStyles() : array<string|int, mixed>
Return values
array<string|int, mixed> —localizeScript()
public
localizeScript(string $handle, string $name, array<string|int, mixed> $data) : bool
Parameters
- $handle : string
- $name : string
- $data : array<string|int, mixed>
Tags
Return values
bool —registerScript()
public
registerScript(string $handle, string $src[, array<string|int, mixed> $deps = [] ][, string|bool|null $ver = false ][, bool $inFooter = false ]) : bool
Parameters
- $handle : string
- $src : string
- $deps : array<string|int, mixed> = []
- $ver : string|bool|null = false
- $inFooter : bool = false
Tags
Return values
bool —registerStyle()
public
registerStyle(string $handle, string $src[, array<string|int, mixed> $deps = [] ][, string|bool|null $ver = false ][, string $media = 'all' ]) : bool
Parameters
- $handle : string
- $src : string
- $deps : array<string|int, mixed> = []
- $ver : string|bool|null = false
- $media : string = 'all'
Tags
Return values
bool —getNewScriptArray()
private
getNewScriptArray(string $src, array<string|int, mixed> $deps, string $ver, bool $inFooter) : array<string|int, mixed>
Parameters
- $src : string
- $deps : array<string|int, mixed>
- $ver : string
- $inFooter : bool
Return values
array<string|int, mixed> —getNewStyleArray()
private
getNewStyleArray(string $src, array<string|int, mixed> $deps, string $ver, string $media) : array<string|int, mixed>
Parameters
- $src : string
- $deps : array<string|int, mixed>
- $ver : string
- $media : string