public
|
|
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
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
|
|
public
array
|
#
bkap_bulk_actions( array $actions )
Remove Edit link from the bulk actions
Remove Edit link from the bulk actions
Parameters
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
|
|
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
Since
4.1.0
Hook
get_search_query
|
public
|
|
public
|
|
public
|
|
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
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.
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
|