RoomShortcode extends AbstractShortcode
in package

Table of Contents

$name  : mixed
$isShowBookButton  : mixed
$isShowDetails  : mixed
$isShowExcerpt  : mixed
$isShowFeaturedImage  : mixed
$isShowGallery  : mixed
$isShowPrice  : mixed
$isShowTitle  : mixed
$isShowViewButton  : mixed
__construct()  : mixed
addActions()  : mixed
generateShortcode()  : string
getName()  : mixed
register()  : mixed
render()  : mixed
buildOrderQuery()  : array<string|int, mixed>
renderRoom()  : mixed
showNoFoundMessage()  : mixed
getRoomTypeQuery()  : mixed
mainLoop()  : mixed

Properties

$name

protected mixed $name = 'mphb_room'

$isShowBookButton

private mixed $isShowBookButton

$isShowDetails

private mixed $isShowDetails

$isShowExcerpt

private mixed $isShowExcerpt

$isShowFeaturedImage

private mixed $isShowFeaturedImage

$isShowGallery

private mixed $isShowGallery

$isShowPrice

private mixed $isShowPrice

$isShowTitle

private mixed $isShowTitle

$isShowViewButton

private mixed $isShowViewButton

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(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.

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

renderRoom()

protected renderRoom() : mixed
Return values
mixed

showNoFoundMessage()

protected showNoFoundMessage() : mixed
Return values
mixed

getRoomTypeQuery()

private getRoomTypeQuery() : mixed
Return values
mixed

mainLoop()

private mainLoop() : mixed
Return values
mixed

Search results