EmployeesListShortcode
extends AbstractPostsListShortcode
in package
Tags
Table of Contents
- $attributes : array<string|int, mixed>
- $name : string
- __construct() : mixed
- getAttributes() : array<string|int, mixed>
- getDefaultArgs() : array<string|int, mixed>
- getLabel() : string
- getName() : string
- getPostArgs() : array<string|int, mixed>
- register() : mixed
- render() : string
- renderContent() : string
- validateArgs() : array<string|int, mixed>
- addActions() : mixed
- filterPostArgs() : array<string|int, mixed>
- getAttributeType() : string
- parseArgs() : array<string|int, mixed>
- queryPosts() : WP_Query
Properties
$attributes
protected
array<string|int, mixed>
$attributes
= []
Tags
$name
protected
string
$name
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —getAttributes()
public
getAttributes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getDefaultArgs()
public
getDefaultArgs() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getLabel()
public
getLabel() : string
Tags
Return values
string —getName()
public
getName() : string
Tags
Return values
string —getPostArgs()
public
getPostArgs(int|string $post) : array<string|int, mixed>
Parameters
- $post : int|string
-
Post ID or slug.
Tags
Return values
array<string|int, mixed> —Arguments from the shortcode post type.
register()
public
register() : mixed
Tags
Return values
mixed —render()
public
render(array<string|int, mixed> $args[, string $content = '' ][, string $shortcodeTag = '' ]) : string
Parameters
- $args : array<string|int, mixed>
- $content : string = ''
-
Optional. '' by default.
- $shortcodeTag : string = ''
-
Optional. '' by default.
Tags
Return values
string —renderContent()
public
renderContent(array<string|int, mixed> $args, string $content, string $shortcodeTag) : string
Parameters
- $args : array<string|int, mixed>
- $content : string
- $shortcodeTag : string
Tags
Return values
string —validateArgs()
public
validateArgs(array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —addActions()
protected
addActions() : mixed
Tags
Return values
mixed —filterPostArgs()
protected
filterPostArgs(array<string|int, mixed> $validArgs, array<string|int, mixed> $postArgs) : array<string|int, mixed>
Parameters
- $validArgs : array<string|int, mixed>
- $postArgs : array<string|int, mixed>
-
Source values.
Tags
Return values
array<string|int, mixed> —getAttributeType()
protected
getAttributeType(string $name[, string $default = 'undefined' ]) : string
Parameters
- $name : string
- $default : string = 'undefined'
-
Optional. 'undefined' by default.
Tags
Return values
string —parseArgs()
protected
parseArgs(array<string|int, mixed> $args, array<string|int, mixed> $defaults, string $content, string $shortcodeTag) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed>
- $defaults : array<string|int, mixed>
- $content : string
- $shortcodeTag : string
Tags
Return values
array<string|int, mixed> —queryPosts()
protected
queryPosts(array<string|int, mixed> $args) : WP_Query
Parameters
- $args : array<string|int, mixed>