BookingManageCPTPage
extends ManageCPTPage
in package
Table of Contents
- EMPTY_VALUE_PLACEHOLDER = '—'
- $description : string
- Description that output under page heading
- $pageActions : array<string|int, mixed>
- Custom actions that output just after the page heading
- $postType : mixed
- $titleActions : array<string|int, mixed>
- Custom actions that output just after the page heading
- __construct() : mixed
- addAccommodationsFilter() : mixed
- addDescriptionScript() : mixed
- addImportedView() : mixed
- addTitleAction() : mixed
- addTitleActionsScript() : mixed
- bulkAction() : mixed
- Process the new bulk actions for changing booking status.
- bulkAdminNotices() : mixed
- Show message that booking status changed for number of bookings.
- bulkAdminScript() : mixed
- Add extra bulk action options to change booking status.
- enqueueScripts() : mixed
- extendPostsSearch() : string
- Replace the search in post_title, post_excerpt and post_content.
- extendPostsSearchOrderBy() : mixed
- extendSearchPostsJoin() : string
- fillDependencedData() : mixed
- filterBulkActions() : mixed
- filterColumns() : mixed
- filterCustomOrderBy() : mixed
- filterRowActions() : mixed
- filterSortableColumns() : mixed
- filterViews() : array<string|int, mixed>
- getUrl() : string
- isCurrentPage() : mixed
- isCurrentTrashPage() : mixed
- isImportedView() : mixed
- renderColumns() : mixed
- searchDistinct() : string
- Prevent duplicates
- addActionsAndFilters() : mixed
- isBookingsQuery() : mixed
Constants
EMPTY_VALUE_PLACEHOLDER
public
mixed
EMPTY_VALUE_PLACEHOLDER
= '—'
Properties
$description
Description that output under page heading
protected
string
$description
$pageActions
Custom actions that output just after the page heading
protected
array<string|int, mixed>
$pageActions
= array()
$postType
protected
mixed
$postType
$titleActions
Custom actions that output just after the page heading
protected
array<string|int, mixed>
$titleActions
= array()
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addAccommodationsFilter()
public
addAccommodationsFilter() : mixed
Return values
mixed —addDescriptionScript()
public
addDescriptionScript() : mixed
Return values
mixed —addImportedView()
public
addImportedView(mixed $views) : mixed
Parameters
- $views : mixed
Return values
mixed —addTitleAction()
public
addTitleAction(mixed $label, mixed $url[, mixed $options = array() ]) : mixed
Parameters
- $label : mixed
- $url : mixed
- $options : mixed = array()
Return values
mixed —addTitleActionsScript()
public
addTitleActionsScript() : mixed
Return values
mixed —bulkAction()
Process the new bulk actions for changing booking status.
public
bulkAction() : mixed
Return values
mixed —bulkAdminNotices()
Show message that booking status changed for number of bookings.
public
bulkAdminNotices() : mixed
Return values
mixed —bulkAdminScript()
Add extra bulk action options to change booking status.
public
bulkAdminScript() : mixed
Using Javascript until WordPress core fixes: http://core.trac.wordpress.org/ticket/16031.
Return values
mixed —enqueueScripts()
public
enqueueScripts() : mixed
Tags
Return values
mixed —extendPostsSearch()
Replace the search in post_title, post_excerpt and post_content.
public
extendPostsSearch(string $where, WP_Query $query) : string
Parameters
- $where : string
- $query : WP_Query
Tags
Return values
string —extendPostsSearchOrderBy()
public
extendPostsSearchOrderBy(mixed $orderBy, mixed $wp_query) : mixed
Parameters
- $orderBy : mixed
- $wp_query : mixed
Return values
mixed —extendSearchPostsJoin()
public
extendSearchPostsJoin(string $join, WP_Query $query) : string
Parameters
- $join : string
- $query : WP_Query
Tags
Return values
string —fillDependencedData()
public
fillDependencedData() : mixed
Tags
Return values
mixed —filterBulkActions()
public
filterBulkActions(mixed $bulkActions) : mixed
Parameters
- $bulkActions : mixed
Return values
mixed —filterColumns()
public
filterColumns(mixed $columns) : mixed
Parameters
- $columns : mixed
Return values
mixed —filterCustomOrderBy()
public
filterCustomOrderBy(mixed $vars) : mixed
Parameters
- $vars : mixed
Return values
mixed —filterRowActions()
public
filterRowActions(mixed $actions) : mixed
Parameters
- $actions : mixed
Return values
mixed —filterSortableColumns()
public
filterSortableColumns(mixed $columns) : mixed
Parameters
- $columns : mixed
Return values
mixed —filterViews()
public
filterViews(array<string|int, mixed> $views) : array<string|int, mixed>
Parameters
- $views : array<string|int, mixed>
Return values
array<string|int, mixed> —getUrl()
public
getUrl([array<string|int, mixed> $atts = array() ]) : string
Parameters
- $atts : array<string|int, mixed> = array()
Return values
string —isCurrentPage()
public
isCurrentPage() : mixed
Return values
mixed —isCurrentTrashPage()
public
isCurrentTrashPage() : mixed
Return values
mixed —isImportedView()
public
isImportedView() : mixed
Return values
mixed —renderColumns()
public
renderColumns(mixed $column, mixed $postId) : mixed
Parameters
- $column : mixed
- $postId : mixed
Return values
mixed —searchDistinct()
Prevent duplicates
public
searchDistinct(string $where) : string
Parameters
- $where : string
Tags
Return values
string —addActionsAndFilters()
protected
addActionsAndFilters() : mixed
Return values
mixed —isBookingsQuery()
protected
isBookingsQuery(mixed $query) : mixed
Parameters
- $query : mixed