WPScriptStyleBase
in
Tags
Table of Contents
- enqueueScript() : mixed
- enqueueStyle() : mixed
- localizeScript() : bool
- registerScript() : bool
- registerStyle() : bool
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
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'
Return values
mixed —localizeScript()
public
localizeScript(string $handle, string $name, array<string|int, mixed> $data) : bool
Parameters
- $handle : string
- $name : string
- $data : array<string|int, mixed>
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
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'