includes/admin/post-types/class-yith-wcbk-booking-create.php
Action fired to check if order has booking and, if so, create the related bookings
Params
int $order_id The order ID.
includes/admin/post-types/class-yith-wcbk-booking-metabox.php
Hook to print the meta-box content
Params
WP_Post $post The post.
Hook to perform any action when processing booking meta
Params
YITH_WCBK_Booking $booking The booking.
includes/admin/post-types/class-yith-wcbk-booking-post-type-admin.php
Allows third-party plugin to handle custom actions before printing the booking details row
ParamsYITH_WCBK_Booking $the_booking The booking.
int $post_id The booking ID.
Hook to render custom columns in bookings' table
Paramsstring $column The column.
int $post_id The post ID.
YITH_WCBK_Booking $booking The booking.
includes/builders/gutenberg/render/class-yith-wcbk-bookable-product-form-block.php
Hook to output the add-to-cart form for the bookable product
includes/builders/gutenberg/render/class-yith-wcbk-booking-form-block.php
Hook to output the add-to-cart form for the bookable product
includes/class-yith-wcbk-ajax.php
Hook to output the booking form
ParamsWC_Product_Booking $product The bookable product.
array $args Arguments.
Hook to handle a specific admin ajax request
Hook to handle a specific frontend ajax request
includes/class-yith-wcbk-cache.php
Hook fired when deleting cache data for a specific object type
Paramsint $id The ID of the object.
int $key_args The key arguments.
bool $result True if the deletion succeeded; false otherwise.
Hook fired when deleting cache data for a specific object
Paramsstring $object_type The object type.
int $id The ID of the object.
int $key_args The key arguments.
bool $result True if the deletion succeeded; false otherwise.
includes/class-yith-wcbk-cart.php
Hook to perform any action after add-to-cart validation
ParamsWC_Product_Booking $product The bookable product.
bool $passed_validation True if passed validation; false otherwise.
array $booking_data The booking data.
array $cart_item_data The cart item data.
includes/class-yith-wcbk-frontend-action-handler.php
Hook to perform any action after request confirmation action
Paramsbool $success True if the booking was correctly created; false otherwise.
YITH_WCBK_Booking $booking The booking.
WC_Product_Booking $product The bookable product.
array $props The booking props.
array $args The request arguments.
includes/class-yith-wcbk-install.php
Action fired after updating the plugin
Action fired after installing the plugin
includes/class-yith-wcbk-modules.php
Hook fired when a specific module is activated
Hook fired when a specific module is deactivated
includes/class-yith-wcbk-orders.php
Hook to output the bookings' list table in My Account > Bookings
Params
YITH_WCBK_Booking[] $bookings The bookings.
Hook to perform any action when an order is created when creating a booking manually
ParamsYITH_WCBK_Booking $booking The booking.
WC_Order $order The order.
int $order_item_id The order item id.
includes/class-yith-wcbk-post-types.php
Hook to perform any action after loading the post-type handlers
Hook to perform any action when registering the plugin post-types
Hook to perform any action after when processing meta of a specific post-type (in meta-boxes)
Paramsint $post_id The post ID.
WP_Post $post The post.
includes/class-yith-wcbk-product-post-type-admin.php
Hook to perform any action when processing the bookable product meta
Params
WC_Product_Booking $product The bookable product.
includes/data-stores/class-yith-wcbk-booking-data-store.php
Hook to perform any action when a booking is created
Params
YITH_WCBK_Booking $booking The booking.
Hook to perform any action when a booking is created
Paramsint $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action when a booking is read
Params
YITH_WCBK_Booking $booking The booking.
Hook to perform any action when a booking is updated
Params
YITH_WCBK_Booking $booking The booking.
Hook to perform any action when a booking is updated
Paramsint $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action before deleting a booking
Paramsint $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action after deleting a booking
Params
int $id The booking ID.
Hook to perform any action when trashing a booking
Paramsint $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action when reading data for a booking
ParamsYITH_WCBK_Booking $booking The booking.
YITH_WCBK_Booking_Data_Store $data_store The data store.
Hook to perform any action to handle updated pros when saving a booking
ParamsYITH_WCBK_Booking $booking The booking.
array $updated_props The updated props.
Hook to perform any action when clearing caches for a booking object
ParamsYITH_WCBK_Booking $booking The booking.
YITH_WCBK_Booking_Data_Store $data_store The data store.
includes/data-stores/class-yith-wcbk-global-availability-rule-data-store.php
Hook to perform any action when a global availability rule is created
Params
YITH_WCBK_Global_Availability_Rule $rule The rule.
Hook to perform any action when a global availability rule is read
Params
YITH_WCBK_Global_Availability_Rule $rule The rule.
Hook to perform any action when a global availability rule is updated
Params
YITH_WCBK_Global_Availability_Rule $rule The rule.
Hook to perform any action before deleting a global availability rule
Params
YITH_WCBK_Global_Availability_Rule $rule The rule.
Hook to perform any action after deleting a global availability rule
Params
int $id The rule ID.
includes/data-stores/class-yith-wcbk-global-price-rule-data-store.php
Hook to perform any action when creating a global price rule
Params
YITH_WCBK_Global_Price_Rule $rule The rule.
Hook to perform any action when reading a global price rule
Params
YITH_WCBK_Global_Price_Rule $rule The rule.
Hook to perform any action when updating a global price rule
Params
YITH_WCBK_Global_Price_Rule $rule The rule.
Hook to perform any action before deleting a global price rule
Params
YITH_WCBK_Global_Price_Rule $rule The rule.
Hook to perform any action after deleting a global price rule
Params
int $id The rule ID.
includes/data-stores/class-yith-wcbk-product-booking-data-store-cpt.php
Hook to perform any action when reading data for a bookable product
ParamsWC_Product_Booking $product The bookable product.
YITH_WCBK_Product_Booking_Data_Store_CPT $data_store The data store.
Hook to perform any action to handle updated pros when saving a bookable product
ParamsWC_Product_Booking $product The bookable product.
array $updated_props The updated props.
Hook to perform any action after synchronizing the bookable product price
Params
WC_Product_Booking $product The bookable product.
includes/data/abstract-yith-wcbk-data.php
Hook to perform any action before saving an object
ParamsYITH_WCBK_Data $this The object.
object $data_store The data store.
Hook to perform any action after saving an object
ParamsYITH_WCBK_Data $this The object.
object $data_store The data store.
includes/data/class-wc-product-booking.php
Hook to perform any action before checking the availability of a bookable product
Paramsarray $args The arguments.
WC_Product_Booking $product The bookable product.
Hook to perform any action before calculating the bookable product cost
Paramsint $timestamp The timestamp for which the cost is calculated.
string $type The type of the cost.
WC_Product_Booking $product The bookable product.
includes/data/class-yith-wcbk-booking.php
Hook to perform any action on booking status transition
Paramsbool $status_to The new status.
int $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action on booking status transition
Paramsint $id The booking ID.
YITH_WCBK_Booking $booking The booking.
Hook to perform any action on booking status transition
Paramsint $id The booking ID.
string $status_from The previous status.
string $status_to The new status.
YITH_WCBK_Booking $booking The booking.
includes/emails/class-yith-wcbk-email.php
Hook to perform any action before sending email
ParamsYITH_WCBK_Email $email The email..
bool $is_customer_email True if is a mail for the customer.
Hook to perform any action after sending email
ParamsYITH_WCBK_Email $email The email..
bool $is_customer_email True if is a mail for the customer.
Action fired to render the email booking details
ParamsYITH_WCBK_Booking $booking The booking.
false $sent_to_admin Sent to admin flag.
false $plain_text Plain text flag.
WC_Email|null $email The Email.
Action fired to render the email booking details
ParamsYITH_WCBK_Booking $booking The booking.
false $sent_to_admin Sent to admin flag.
false $plain_text Plain text flag.
WC_Email|null $email The Email.
includes/functions.yith-wcbk-template.php
Hook to output something at the start of the booking form
Params
WC_Product_Booking $product The bookable product.
Used to output the booking form content and fields
Params
WC_Product_Booking $product The bookable product.
Used to output the price in the booking form
Params
WC_Product_Booking $product The bookable product.
Used to output the message in the booking form
Params
WC_Product_Booking $product The bookable product.
Hook to output something at the end of the booking form
Params
WC_Product_Booking $product The bookable product.
includes/integrations/plugins/class-yith-wcbk-quick-view-integration.php
Hook to output the add-to-cart form for the bookable product
init-global.php
Action fired after the Booking plugin is loaded
Action fired to initialize the Booking plugin
modules/costs/includes/functions.php
Hook to perform any action before retrieving Extra Costs
Params
array $args The arguments passed to the get_posts.
Hook to perform any action after retrieving Extra Costs
Params
array $args The arguments passed to the get_posts.
modules/google-calendar/includes/class-yith-wcbk-google-calendar-booking-data-extension.php
Used to synchronize the Google Calendar event when the booking is updated
Params
YITH_WCBK_Booking $booking The booking.
modules/google-calendar/includes/class-yith-wcbk-google-calendar-sync.php
Used to synchronize the Google Calendar event
Params
int $booking_id The booking ID.
Used to synchronize the Google Calendar event
Params
int $booking_id The booking ID.
modules/google-maps/includes/class-yith-wcbk-maps.php
Hook to perform some action after successfully retrieving the location coordinates by the address
Paramsarray $location The location retrieved by Google Maps.
string $address The address.
array $data Data provided by the request to the Google Geocode API.
modules/people/includes/class-yith-wcbk-person-type-helper.php
Hook to perform any action before retrieving Person Types
Params
array $args The arguments passed to the get_posts.
Hook to perform any action after retrieving Person Types
Params
array $args The arguments passed to the get_posts.
modules/people/views/product-tabs/people/people-type.php
Hook to render something after the single person type options
Params
array $args The person type settings.
modules/resources/includes/class-yith-wcbk-resource-data-store.php
Hook to perform any action before deleting a Resource
Paramsint $id The resource ID.
YITH_WCBK_Resource $resource The resource.
Hook to perform any action after deleting a Resource
Params
int $id The resource ID.
modules/search-forms/includes/class-yith-wcbk-search-form-data-store.php
Hook to perform any action before deleting a Search Form
Paramsint $id The resource ID.
YITH_WCBK_Search_Form $search_form The search form.
Hook to perform any action after deleting a Search Form
Params
int $id The resource ID.
modules/search-forms/includes/class-yith-wcbk-search-forms-ajax.php
Hook to perform any action before setting the search product query (when searching bookable products though a Search Form)
Hook to render something after the "no booking available" message (if no bookable products was found)
modules/search-forms/includes/functions.php
Hook to perform any action before retrieving results when searching for bookable products
Paramsarray $search_args The search arguments (used by the get_posts function).
array $args The function args.
Hook to perform any action after retrieving results when searching for bookable products
Paramsarray $search_args The search arguments (used by the get_posts function).
array $args The function args.
modules/search-forms/templates/booking-search-form.php
Hook to render something before the Search Form
Params
YITH_WCBK_Search_Form $search_form The search form.
Hook to render something before printing a field of the Search Form
Paramsstring $field_key The field key.
array $field_data The field data..
YITH_WCBK_Search_Form $search_form The search form.
Hook to render something when printing a field of the Search Form
Paramsstring $field_key The field key.
array $field_data The field data..
YITH_WCBK_Search_Form $search_form The search form.
Hook to render something after printing a field of the Search Form
Paramsstring $field_key The field key.
array $field_data The field data..
YITH_WCBK_Search_Form $search_form The search form.
Hook to render something after the fields rendered in the Search Form
Params
YITH_WCBK_Search_Form $search_form The search form.
Hook to render something after the Search Form
Params
YITH_WCBK_Search_Form $search_form The search form.
modules/search-forms/templates/results/results.php
Hook to render something before the Search Form results
Hook to render something after the Search Form results
modules/search-forms/templates/results/single.php
Hook to render something before the Search Form result item
Params
array $booking_data Booking data.
Hook to render the item thumbnails in the search form results
Params
array $booking_data Booking data.
Hook to render something before the item title in the search form results
Params
array $booking_data Booking data.
Hook to render the item title in the search form results
Params
array $booking_data Booking data.
Hook to render something after the item title in the search form results
Params
array $booking_data Booking data.
Hook to render the item price in the search form results
Params
array $booking_data Booking data.
Hook to render the item add-to-cart in the search form results
Params
array $booking_data Booking data.
Hook to render something after the Search Form result item
Params
array $booking_data Booking data.
modules/services/includes/class-yith-wcbk-service-data-store.php
Hook to perform any action before deleting a Service
Paramsint $id The service ID.
YITH_WCBK_Service $service The service.
Hook to perform any action after deleting a Service
Params
int $id The service ID.
modules/services/includes/class-yith-wcbk-service-tax-admin.php
Hook to allow setting props or perform any action when processing the service meta
Params
YITH_WCBK_Service $service The service.
Hook to perform any action after saving the Service fields
Paramsint $term_id The Term ID.
$service_data $service_data The service data.
modules/services/includes/data/class-yith-wcbk-service.php
Hook to perform any action when a Service is loaded
Params
YITH_WCBK_Service $this The service.
templates/booking/booking-details.php
Hook to output something in the booking details template after the booking table
Params
YITH_WCBK_Booking $booking The booking.
templates/booking/pdf/booking.php
Hook to output something in the booking PDF template withing the
tagHook to output something in the booking PDF template in the header section
ParamsYITH_WCBK_Booking $booking The booking.
boolean $is_admin True if this is a PDF for the admin, false otherwise.
Hook to output something in the booking PDF template in the content section
ParamsYITH_WCBK_Booking $booking The booking.
boolean $is_admin True if this is a PDF for the admin, false otherwise.
Hook to output something in the booking PDF template in the footer section
ParamsYITH_WCBK_Booking $booking The booking.
boolean $is_admin True if this is a PDF for the admin, false otherwise.
templates/emails/email-booking-details.php
Hook to output something before the booking details table in emails
ParamsYITH_WCBK_Booking $booking The booking.
bool $sent_to_admin True if the email is sent to admin, false otherwise.
bool $plain_text True if the email type is text/plain.
WC_Email $email The email object
Hook to output something after the booking details table in emails
ParamsYITH_WCBK_Booking $booking The booking.
bool $sent_to_admin True if the email is sent to admin, false otherwise.
bool $plain_text True if the email type is text/plain.
WC_Email $email The email object
templates/emails/plain/email-booking-details.php
Hook to output something before the booking details table in emails
ParamsYITH_WCBK_Booking $booking The booking.
bool $sent_to_admin True if the email is sent to admin, false otherwise.
bool $plain_text True if the email type is text/plain.
WC_Email $email The email object
Hook to output something after the booking details table in emails
ParamsYITH_WCBK_Booking $booking The booking.
bool $sent_to_admin True if the email is sent to admin, false otherwise.
bool $plain_text True if the email type is text/plain.
WC_Email $email The email object
templates/myaccount/bookings-table.php
Hook to output something before the table in the bookings' list in My Account > Bookings
Params
bool $has_bookings True if the current user has at least one booking.
Hook to output something in a specific column in the bookings' list in My Account > Bookings
ParamsWC_Order $the_order The order.
YITH_WCBK_Booking $booking The booking.
Hook to output something in the "actions" column in the bookings' list in My Account > Bookings
ParamsYITH_WCBK_Booking $booking The booking.
bool $show_view_action True to include the "view" action.
Hook to output something before pagination in the bookings' list in My Account > Bookings
Hook to output something after the table in the bookings' list in My Account > Bookings
Params
bool $has_bookings True if the current user has at least one booking.
templates/myaccount/bookings.php
Hook to output something before the bookings' list in My Account > Bookings
Params
bool $has_bookings True if the current user has at least one booking.
Hook to output the bookings' list table in My Account > Bookings
Params
YITH_WCBK_Booking[] $bookings The bookings.
Hook to output something before the pagination in the bookings' list in My Account > Bookings
Hook to output something after the bookings' list in My Account > Bookings
Params
bool $has_bookings True if the current user has at least one booking.
templates/myaccount/view-booking.php
Allows to render some content or fire some action in My Account > Bookings > View booking page
Params
int $booking_id The booking ID.
templates/shortcodes/booking-form.php
Used to output title, rating and price before the booking add-to-cart form in the booking form shortcode
Hook to output the add-to-cart form for the bookable product
Used to output meta and sharing sections after the booking add-to-cart form in the booking form shortcode
templates/single-product/add-to-cart/booking-form/dates.php
Hook to output the booking form date fields
Params
WC_Product_Booking $product The bookable product.
Hook to output the booking form duration field
Params
WC_Product_Booking $product The bookable product.
templates/single-product/add-to-cart/booking-form/dates/duration.php
Hook to output something after the "duration" label in the booking form
Paramsint $duration The duration.
string $duration_unit The duration unit.
int $duration_number The duration number.
string $duration_label The duration label.
templates/single-product/add-to-cart/booking-form/widget-booking-form.php
Used to output price and rating before the booking add-to-cart form in the widget
Hook to output something before the booking add-to-cart form in the widget
Hook to output the add-to-cart form for the bookable product
Hook to output something after the booking add-to-cart form in the widget
templates/single-product/add-to-cart/booking.php
Hook to output something before the booking form
Hook to output something at the start of the booking form
Params
WC_Product_Booking $product The bookable product.
Used to output meta in the booking form
Params
WC_Product_Booking $product The bookable product.
Used to output the booking form content and fields
Params
WC_Product_Booking $product The bookable product.
Used to output the message in the booking form
Params
WC_Product_Booking $product The bookable product.
Hook to output something at the end of the booking form
Params
WC_Product_Booking $product The bookable product.
Hook to output something before the add-to-cart button in the booking form
Hook to output something after the add-to-cart button in the booking form
views/calendar/html-booking-calendar-action-bar.php
Allows to render some content in the booking calendar action bar after the product search field
views/calendar/html-booking-calendar-single-booking-data.php
Hook to output something before single booking data shown in the admin calendar
Params
YITH_WCBK_Booking $booking The booking.
Hook to output something before single booking data in the table shown in the admin calendar
Params
YITH_WCBK_Booking $booking The booking.
Hook to output something after single booking data in the table shown in the admin calendar
Params
YITH_WCBK_Booking $booking The booking.
Hook to output something after single booking data shown in the admin calendar
Params
YITH_WCBK_Booking $booking The booking.
views/create-booking.php
Allows to render some content in the booking creation template before the default options
Allows to render some content in the booking creation template after the default options
views/metaboxes/html-booking-meta-actions.php
Hook to output something at the end of the "Actions" meta-box in booking details (admin side)
Params
YITH_WCBK_Booking $booking The booking.
views/metaboxes/html-booking-meta-data.php
Hook to output something in the booking data meta-box after the first column
Params
YITH_WCBK_Booking $booking The booking.
Hook to output something in the booking data meta-box after the second column
Params
YITH_WCBK_Booking $booking The booking.
Hook to output something in the booking data meta-box after the third column
Params
YITH_WCBK_Booking $booking The booking.
views/product-tabs/html-costs-tab.php
Hook to output something in the "costs" tab of the bookable product edit page after standard prices
Params
WC_Product_Booking|false $booking_product The bookable product.
views/product-tabs/html-settings-tab.php
Hook to output something at the end of the "settings" tab in the bookable product edit page
Params
WC_Product_Booking|false $booking_product The bookable product.
views/product-tabs/utility/html-availability-rule.php
Hook to output something in the "availability" tab in the bookable product edit page after the availability rule options
Paramsstring $_field_name The field name.
string $_field_id_prefix The field ID prefix.
string $index The index of the rule.
YITH_WCBK_Availability_Rule $availability_rule The availability rule.