Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • BKAP
    • Addons
    • Admin-Bookings
    • Attribute-Lockout
    • Block-Pricing
    • Booking-Box
    • Booking-Confirmation
    • Booking-Process
    • Cancel-Order
    • Cart
    • Checkout-Process
    • Core
    • Date-Time
    • Emails
    • Functions
    • Global-Function
    • Global-Settings
    • Google-Calendar-Sync
    • ICS
    • Import-Booking
    • Labels
    • License
    • Menus
    • Meta-Boxes
    • Reschedule
    • Resources
    • Search-Widget
    • Special-Price
    • Uninstall
    • Validation
    • Variation-Lockout
    • Vendors
      • Dokan
      • WC-Vendors
    • View-Bookings
  • None

Classes

  • BKAP_Bookings_View
  • view_bookings
  • WAPBK_View_Bookings_Table

Class BKAP_Bookings_View

Class for View Bookings

Package: BKAP\View-Bookings
Author: Tyche Softwares
Since: 4.1.0
Located at class-bkap-booking-view-bookings.php

Methods summary

public
# __construct( )

Default constructor

Default constructor

Since

4.1.0
public mixed
# bkap_custom_date_dropdown( mixed $months )

Modify the date filter dropdown to show Booking months & year

Modify the date filter dropdown to show Booking months & year

Parameters

$months
Current Months present

Returns

mixed
Months having Booking Details

Since

4.1.0

Hook

months_dropdown_results
public
# bkap_date_meta_query( string $wp_query )

Modify the date filter query to filter by booking start & end dates

Modify the date filter query to filter by booking start & end dates

Parameters

$wp_query
Query String to set

Since

4.1.0

Hook

pre_get_posts
public
# bkap_post_enqueue( )

Enqueue Scripts on View Bookings Page

Enqueue Scripts on View Bookings Page

Since

4.1.0

Hook

admin_enqueue_scripts
public string
# bkap_title( string $text, WP_Post $post )

Change title boxes in admin.

Change title boxes in admin.

Parameters

$text
Text to be displayed
$post
Post Object

Returns

string

Since

4.1.0

Hook

enter_title_here
public string
# list_table_primary_column( string $default, string $screen_id )

Set list table primary column for bookings.

Set list table primary column for bookings.

Parameters

$default
Default Column
$screen_id
Screen ID

Returns

string
Text to be displayed

Since

4.1.0

Hook

list_table_primary_column
public array
# row_actions( array $actions, WP_Post $post )

Set row actions for booking.

Set row actions for booking.

Parameters

$actions
Current Actions
$post
Booking Post Object

Returns

array
Actions

Since

4.1.0

Hook

post_row_actions
public array
# bkap_edit_columns( array $existing_columns )

Change the columns shown in admin.

Change the columns shown in admin.

Parameters

$existing_columns
$exisitng_columns Exiting Columns Array

Returns

array
Columns Modified Array

Since

4.1.0

Hook

manage_edit-bkap_booking_columns
public
# bkap_custom_columns( string $column )

Define our custom columns shown in admin.

Define our custom columns shown in admin.

Parameters

$column
Custom Columns Array

Since

4.1.0

Hook

manage_bkap_booking_posts_custom_column
public array
# bkap_custom_columns_sort( mixed $columns )

Sortable Columns List

Sortable Columns List

Parameters

$columns
Array of columns

Returns

array
array of the columns keys to be displayed on the View Bookings page

Since

4.1.0
public array
# bkap_custom_columns_orderby( mixed $vars )

For Sortable columns

For Sortable columns

Parameters

$vars

Returns

array

Since

4.1.0
public array
# bkap_bulk_actions( array $actions )

Remove Edit link from the bulk actions

Remove Edit link from the bulk actions

Parameters

$actions

Returns

array

Since

4.1.0
public
# bkap_filters( )

This functions will filter the bookings on the View Bookings page

This functions will filter the bookings on the View Bookings page

Since

4.1.0

Hook

restrict_manage_posts
public
# bkap_filters_query( $query )

Custom filter queries

Custom filter queries

Parameters

$query

Since

4.1.0

Hook

parse_query
public
# bkap_search_label( $query )

To get the search parameter when search is made on View booking page

To get the search parameter when search is made on View booking page

Parameters

$query

Since

4.1.0

Hook

get_search_query
public
# bkap_search_custom_fields( object $wp )

Search custom columns

Search custom columns

Parameters

$wp
WP Object

Since

4.1.0

Hook

parse_query
public
# bkap_bulk_admin_footer( )

Add Bulk Actions

Add Bulk Actions

Since

4.1.0

Hook

admin_footer
public
# bkap_bulk_action( )

Bulk Actions execution

Bulk Actions execution

Since

4.1.0

Hook

load-edit.php
public
# bkap_bulk_admin_notices( )

Bulk Action messages

Bulk Action messages

Since

4.1.0

Hook

admin_notices
public
# bkap_old_view( )

Add notice for linking to the old View Bookings page

Add notice for linking to the old View Bookings page

Since

4.1.0

Hook

admin_notices
public
# bkap_booking_confirmed( )

Ajax for confirming bookings from Actions column

Ajax for confirming bookings from Actions column

Since

4.1.0

Hook

wp_ajax_bkap-booking-confirm
public boolean
# bkap_check_booking_present( integer $product_id )

Returns true if at least one booking has been received for the given product ID

Returns true if at least one booking has been received for the given product ID

Parameters

$product_id
Product ID

Returns

boolean

Since

4.1.0
public
# bkap_export_data( )

Preparing the data of bookings and Exporting that in the CSV file OR for Printing

Preparing the data of bookings and Exporting that in the CSV file OR for Printing

Since

4.1.0

Hook

admin_init
public static
# bkap_download_csv_file( array $report )

Download the CSV of the bookings.

Download the CSV of the bookings.

Parameters

$report
array of bookings based on filter

Since

4.1.0
public static
# bkap_download_print_file( array $report )

Print of the bookings.

Print of the bookings.

Parameters

$report
array of bookings based on filter

Since

4.1.0
public
# generate_data( string $post_status )

Generate list of booking.

Generate list of booking.

Parameters

$post_status
status of the booking

Since

4.1.0 return array array contains all the booking details for the given status


public static
# generate_csv( array $data )

Generate string for CSV of booking.

Generate string for CSV of booking.

Parameters

$data
array of booking information

Since

4.1.0
API documentation generated by ApiGen