Class woocommerce_booking
Booking & Appointment Plugin Core Class
Methods summary
public
|
|
public static
|
#
bkap_meta_box_save1( string|integer $post_id, WP_Post $post )
Save details of Resources availability |
public static
|
|
public static
boolean
|
|
public static
|
#
bkap_check_compatibility( )
Ensure that the booking plugin is deactivated when WooCommerce is deactivated. |
public static
|
#
bkap_disabled_notice( )
Display a notice in the admin Plugins page if the booking plugin is activated while WooCommerce is deactivated. |
public static
|
|
public static
array
|
|
public
array
|
|
public
|
|
public
|
|
public
|
#
bkap_product_duplicate( integer $new_id, WP_Post $post )
This function duplicates the booking settings of the original product to the new product. |
public
|
#
bkap_bookings_update_db_check( )
This function is executed when the plugin is updated using the Automatic Updater. It calls the bookings_activate function which will check the table structures for the plugin and make any changes if necessary. |
public static
|
#
bkap_update_db_notice( )
Adds a notification for the admin to update the DB manually. This notification is added only if the auto update fails |
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
|
#
bkap_bookings_activate( )
This function detects when the booking plugin is activated and creates all the tables necessary in database, if they do not exists. |
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
public
|
#
bkap_front_side_scripts_js( )
This function will call common function to includes js files required for frontend. |
public static
|
#
include_frontend_scripts_js( string|integer $product_id )
Include Front End scripts (JS) for Datepicker dependencies |
public
|
#
bkap_front_side_scripts_css( )
This function will call common function to includes css files required for frontend. |
public static
|
#
inlcude_frontend_scripts_css( string|integer $product_id )
Include Front End scripts (CSS) for Datepicker dependencies |
public
mixed
|
#
bkap_get_date_lockout( string $start_date )
This function returns the number of bookings done for a date. |
public
|
#
bkap_remove_time_slot( )
This function updates to "Inactive" a single time slot from View/Delete Booking date, Timeslots. |
public
|
#
bkap_remove_specific( )
This function updates all dates to "Inactive" from View/Delete Booking date, Timeslots of specific day method. |
public
|
#
bkap_remove_recurring( )
This function updates all days to "Inactive" from View/Delete Booking date, Timeslots of recurring day method. |
public
|
#
bkap_register_fixed_block_string_for_wpml( )
This function used to register Fixed block booking's Block name string to WPML Like : Body, subject, Wc header text |
public
|
#
bkap_load_edit_bookings_class( array $global_settings )
Function to load the Edit Booking Class to perform Bookings Edit on Cart and Checkout Page |
public
|
|
public
string
|
#
bkap_change_create_booking_link( string $url, string $path )
Modify the current create booking URL to point to our new Create Booking Page |
public
|
|
public
|
|
public
|
|
public static
|
#
bkap_delete_booking( integer $booking_post_id )
Deletes the booking item from the order and sets the booking status to cancelled |
public
array
|
#
bkap_sanity_check( array $booking )
Checks the details of the booking post being edited. In case of any errors, it returns the list of errors. |
public
mixed
|
#
bkap_meta_box_save( mixed $post_data, WP_Post $post )
This function saves the booking data for Edit Booking posts - from Woo->Orders |
public
string
|
#
add_time_slot( string $dropdown )
If the time slot is locked out, it still needs to be displayed if the booking is being edited. So add the time slot to the dropdown list for Edit Booking Post page. |
public static
|
#
bkap_edit_bookings( string|integer $order_id, string|integer $item_id, string $old_start, string $old_end, string $old_time, string|integer $product_id )
Update the bookings after Confirm Booking is clicked |