add_action('bookingpress_after_book_appointment', 'bookingpress_after_book_appointment_func', 10, 3);
function bookingpress_after_book_appointment_func($inserted_booking_id, $entry_id, $payment_gateway_data)
{
//$inserted_booking_id Appointment id
//$entry_id entry id
//$payment_gateway_data payment gateway data
}
add_action('bookingpress_after_rescheduled_appointment', 'bookingpress_before_delete_customer_func', 10);
function bookingpress_before_delete_customer_func($bookingpress_appointment_id)
{
//$bookingpress_appointment_id Appointment id
}
add_action('bookingpress_after_cancel_appointment', 'bookingpress_after_cancel_appointment_func', 10);
function bookingpress_after_cancel_appointment_func($cancel_id)
{
//$cancel_id appointment id
}
add_action('bookingpress_after_approve_appointment', 'bookingpress_after_approve_appointment_func', 10);
function bookingpress_after_approve_appointment_func($payment_data)
{
//$payment_data payment data
}
add_action('bookingpress_after_change_appointment_status', 'bookingpress_after_change_appointment_status_func', 10, 2);
function bookingpress_after_change_appointment_status_func($appointment_id, $bookingpress_appointment_status)
{
//$appointment_id updated appointment id
//$bookingpress_appointment_status updated status
}
add_action('bookingpress_after_update_appointment', 'bookingpress_after_update_appointment_func', 10, 2);
function bookingpress_after_update_appointment_func($bookingpress_update_id, $bookingpress_appointment_data)
{
//$bookingpress_update_id updated appointment id
//$bookingpress_appointment_data updated appointment data
}
add_action('bookingpress_before_delete_appointment', 'bookingpress_before_delete_appointment_func', 10);
function bookingpress_before_delete_appointment_func($appointment_id)
{
//$appointment_id for being deleted
}
add_filter('bookingpress_general_settings_add_tab_filter', 'bookingpress_general_settings_add_tab_filter_func', 10);
function bookingpress_general_settings_add_tab_filter_fun($bookingpress_file_url)
{
//$bookingpress_file_url[] = File URL
return $bookingpress_file_url;
}
add_action('boookingpress_after_save_settings_data', 'boookingpress_after_save_settings_data_func', 10);
function boookingpress_after_save_settings_data_func($posted_data)
{
//$posted_data posted data
}
add_filter('bookingpress_get_booking_form_customize_data_filter', 'bookingpress_get_booking_form_customize_data_filter_func', 10);
function bookingpress_get_booking_form_customize_data_filter_func($bookingpress_booking_form_data)
{
//$bookingpress_booking_form_data Front Form Data
return $bookingpress_booking_form_data;
}
add_filter('bookingpress_customize_add_dynamic_data_fields', 'bookingpress_modify_customize_data_fields_func', 10);
function bookingpress_modify_customize_data_fields_func($bookingpress_customize_vue_data_fields)
{
//$bookingpress_customize_vue_data_fields vuejs
return $bookingpress_customize_vue_data_fields;
}
add_action('bookingpress_after_save_customize_settings', 'bookingpress_after_save_customize_settings_func', 10);
function bookingpress_after_save_customize_settings_func()
{
//inject your code
}
add_action('bpa_complete_payment_add_card_options', 'bpa_complete_payment_add_card_options_func', 10);
function bpa_complete_payment_add_card_options_func()
{
//inject your code
}
add_action('bpa_front_add_card_options', 'bpa_front_add_card_options_func', 10);
function bpa_front_add_card_options_func()
{
//inject your code
}
add_action('bookingpress_after_refund_appointment', 'bookingpress_after_refund_appointment_func', 10);
function bookingpress_after_refund_appointment_func($bookingpress_appointment_id)
{
//$bookingpress_appointment_id Appointment id
}
add_filter('bookingpress_currency_support', 'bookingpress_currency_support_func', 10, 2);
function bookingpress_currency_support_func($notAllow, $bookingpress_currency)
{
//$notAllow Not supported by payment gateways
//$bookingpress_currency Selectd Currency
return $notAllow;
}
add_filter('bookingpress_allowed_payment_gateway_for_refund', 'bookingpress_allowed_payment_gateway_for_refund_func', 10);
function bookingpress_allowed_payment_gateway_for_refund_func($payment_gateway_data)
{
//$payment_gateway_data Payment gateway settings
return $payment_gateway_data;
}
add_action('bookingpress_gateway_listing_field', 'bookingpress_gateway_listing_field_func', 10);
function bookingpress_gateway_listing_field_func()
{
//Add your code
}
add_filter('bookingpress_{payment_gateway}_apply_refund', 'bookingpress_{payment_gateway}_apply_refund_func', 10, 2);
//{payment_gateway} is dynamic text, it replaces with the actual payment gateway slug like (paypal, stripe)
function bookingpress_{payment_gateway}_apply_refund_func($response, $bookingpress_send_refund_data)
{
//$response response data array from payment gateway
//$bookingpress_send_refund_data passing data to the payment gateway
return $response;
}
add_filter('bookingpress_{payment_gateway}_submit_form_data', 'bookingpress_{payment_gateway}_submit_form_data_func', 10, 2);
//{payment_gateway} is dynamic text, it replaces actual payment gateway slug like (paypal, stripe)
function bookingpress_{payment_gateway}_submit_form_data_func($response, $bookingpress_return_data)
{
//$response response data array from payment gateway
//$bookingpress_return_data
return $response;
}
add_action('bookingpress_add_booking_form_summary_label_data', 'bookingpress_add_booking_form_summary_label_data_func', 10);
function bookingpress_add_booking_form_summary_label_data_func()
{
//inject your code
}
add_filter('bookingpress_add_setting_dynamic_data_fields', 'bookingpress_add_setting_dynamic_data_fields_func', 10);
function bookingpress_add_setting_dynamic_data_fields_func($bookingpress_dynamic_setting_data_fields)
{
//$bookingpress_dynamic_setting_data_fields Dynamic settings data variables
return $bookingpress_dynamic_setting_data_fields;
}
add_filter('bookingpress_staff_members_save_external_details', 'bookingpress_staff_members_save_external_details_func', 10);
function bookingpress_staff_members_save_external_details_func($response)
{
//$response member details response
return $response;
}
add_filter('bookingpress_get_email_notiication_reply_to_data_employee', 'bookingpress_get_email_notiication_reply_to_data_employee_func', 10, 2);
function bookingpress_get_email_notiication_reply_to_data_employee_func($reply_to_data_arr,$appointment_id)
{
//$reply_to_data_arr Reply to email array
//$appointment_id Appointment id
return $reply_to_data_arr;
}
add_filter('bookingpress_get_email_notiication_reply_to_data', 'bookingpress_get_email_notiication_reply_to_data_func', 10, 2);
function bookingpress_get_email_notiication_reply_to_data_func($reply_to_data_arr,$appointment_id)
{
//$reply_to_data_arr Reply to email array
//$appointment_id Appointment id
return $reply_to_data_arr;
}