AbstractShortcode
in package
Table of Contents
- $name : mixed
- __construct() : mixed
- addActions() : mixed
- generateShortcode() : string
- getName() : mixed
- register() : mixed
- render() : mixed
- buildOrderQuery() : array<string|int, mixed>
Properties
$name
protected
mixed
$name
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addActions()
public
addActions() : mixed
Return values
mixed —generateShortcode()
public
generateShortcode([array<string|int, mixed> $attrs = array() ]) : string
Parameters
- $attrs : array<string|int, mixed> = array()
-
Attributes of shortcode
Return values
string —getName()
public
getName() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —render()
public
abstract render(mixed $atts, mixed $content, mixed $shortcodeName) : mixed
Parameters
- $atts : mixed
- $content : mixed
- $shortcodeName : mixed
Return values
mixed —buildOrderQuery()
protected
buildOrderQuery(array<string|int, mixed> $atts, array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
- $atts : array<string|int, mixed>
-
Shortcode attributes.
- $defaults : array<string|int, mixed>
-
Default values of "orderby" and "order" attributes.