RoomsShortcode extends AbstractShortcode
in package

Table of Contents

$category  : mixed
$customPostsPerPage  : mixed
$ids  : mixed
$isShowBookButton  : mixed
$isShowDetails  : mixed
$isShowExcerpt  : mixed
$isShowFeaturedImage  : mixed
$isShowGallery  : mixed
$isShowPrice  : mixed
$isShowTitle  : mixed
$isShowViewButton  : mixed
$isSortByPrice  : bool
$name  : mixed
$order  : mixed
$relation  : mixed
$tags  : mixed
__construct()  : mixed
addActions()  : mixed
generateShortcode()  : string
getName()  : mixed
getRoomTypesQuery()  : mixed
mainLoop()  : mixed
orderByPrice()  : mixed
Order rooms by price before the WP_Query loop.
register()  : mixed
render()  : string
showNotFoundMessage()  : mixed
buildOrderQuery()  : array<string|int, mixed>
renderRoomType()  : mixed

Properties

$category

protected mixed $category

$customPostsPerPage

protected mixed $customPostsPerPage

$ids

protected mixed $ids

$isShowBookButton

protected mixed $isShowBookButton

$isShowDetails

protected mixed $isShowDetails

$isShowExcerpt

protected mixed $isShowExcerpt

$isShowFeaturedImage

protected mixed $isShowFeaturedImage

$isShowGallery

protected mixed $isShowGallery

$isShowPrice

protected mixed $isShowPrice

$isShowTitle

protected mixed $isShowTitle

$isShowViewButton

protected mixed $isShowViewButton

$isSortByPrice

protected bool $isSortByPrice
Tags
since
3.9.6

$name

protected mixed $name = 'mphb_rooms'

$order

protected mixed $order

$relation

protected mixed $relation

$tags

protected mixed $tags

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

getRoomTypesQuery()

public getRoomTypesQuery() : mixed
Return values
mixed

mainLoop()

public mainLoop() : mixed
Return values
mixed

orderByPrice()

Order rooms by price before the WP_Query loop.

public orderByPrice(array<string|int, mixed> $roomTypes, mixed $query) : mixed
Parameters
$roomTypes : array<string|int, mixed>
$query : mixed
Tags
since
3.9.6
Return values
mixed

register()

public register() : mixed
Return values
mixed

render()

public render(array<string|int, mixed> $atts, string $content, string $shortcodeName) : string
Parameters
$atts : array<string|int, mixed>
$content : string
$shortcodeName : string
Return values
string

showNotFoundMessage()

public showNotFoundMessage() : 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>

renderRoomType()

private renderRoomType() : mixed
Return values
mixed

Search results