Manages multiple hotels in a single website
author | mcanever |
---|---|
version | 1.0.0 |
disable()
enable()
get_hotel(string $post) : \Ambigous
string
\Ambigous
get_hotel_id(int | object $post, boolean $default_language) : int
int
object
the post you want to check
boolean
true if you want the id of the default language translation
int
the hotel post idget_hotel_slug(string $post)
string
the slug
get_hotel_title(int | object $post) : string
int
object
the post you want to know
string
the hotel titleget_hotels() : array
array
a list of posts that are main hotel pageget_hotels_ids() : array
array
list of idsis_group(int | object $post) : boolean
int
object
the post you need to check, default is the current one
boolean
true if $post is from group websiteis_hotel(int | object $post, $hotel_name) : boolean
int
object
the post you need to check, default is the current one
boolean
true if $post is from the hotel websiteget_haystack(object $post) : \array:
object
\array:
$enabled : \unknown
$hotels : array
$current_hotel : \Hotel
$errors : array
META_KEY_NAME : string