BookingFormShortcode extends AbstractShortcode
in package

Table of Contents

$name  : mixed
$roomTypeId  : mixed
__construct()  : mixed
addActions()  : mixed
generateShortcode()  : string
getName()  : mixed
register()  : mixed
render()  : string
buildOrderQuery()  : array<string|int, mixed>
renderMain()  : mixed

Properties

$name

protected mixed $name = 'mphb_availability'

$roomTypeId

private mixed $roomTypeId

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 render(array<string|int, mixed> $atts, null $content, string $shortcodeName) : string
Parameters
$atts : array<string|int, mixed>
$content : null
$shortcodeName : string
Return values
string

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.

Tags
see
https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters
Return values
array<string|int, mixed>

renderMain()

private renderMain() : mixed
Return values
mixed

Search results