Filters

includes/admin/class-yith-wcbk-booking-calendar.php

Copied!
Copy

Filters the time-steps in Booking admin calendar

Params
 array $time_steps  The time steps.

Return array

includes/admin/post-types/class-yith-wcbk-booking-create.php

Copied!
Copy

Filters the product id to be translated (if you need to translate it)

Params
 int $product_id The args.

Return int

includes/class-yith-wcbk-admin.php

Copied!
Copy

Filters the admin settings tab

Params
 array $tabs The tabs.

Return array

Copied!
Copy

Filters the plugin panel arguments

Params
 array $args The arguments.

Return array

includes/class-yith-wcbk-ajax.php

Copied!
Copy

Filters the booking note before being added

Params
 string $note The note.

Return string

Copied!
Copy

Filters the search term when searching for orders in AJAX

Params
 string $term The term.

Return string

Copied!
Copy

Filters the limit of orders searched when searching for orders in AJAX

Params
 int $limit The limit.

Return int

Copied!
Copy

Filters the order number shown when searching for orders in AJAX

Params
 string $order_number The order number.
 int    $order_id     The order ID.

Return string

Copied!
Copy

Filters the args passed to get_post when searching for bookable products in AJAX

Params
 array $args The arguments.

Return array

Copied!
Copy

Filters the bookable products before returning them when searching for them in AJAX

Params
 array $found_products The products' key-value array (key is the product id, value is the formatted product name).

Return array The products' key-value array (key is the product id, value is the formatted product name).

Copied!
Copy

Filters the request when retrieving booking data in AJAX

Params
 array $request The request.

Return array

Copied!
Copy

Filters the args used to check for availability when retrieving booking data in AJAX

Params
 array              $is_available_args The arguments.
 WC_Product_Booking $product           The bookable product.
 array              $request           The request.

Return array

Copied!
Copy

Filters the calculated price of the bookable product

Params
 float|int          $price   The price.
 array              $args    The arguments.
 WC_Product_Booking $product The bookable product.

Return float|int

Copied!
Copy

Filters the totals to be shown in the booking form

Params
 string             $totals_html The totals HTML.
 array              $totals      The totals.
 string             $price_html  The price HTML.
 WC_Product_Booking $product     The bookable product.
 array              $request     The request.

Return string

Copied!
Copy

Filters the price to be shown in the booking form when the product is non-bookable

Params
 string $price_html    The price HTML.
 array  $request       The request.
 array  $bookable_args The arguments.

Return string

Copied!
Copy

Filters the booking data retrieved in AJAX

Params
 array              $booking_data  The data.
 WC_Product_Booking $product       The bookable product.
 array              $bookable_args The arguments.
 array              $request       The request.

Return array

Copied!
Copy

Filters the request when retrieving the booking available times in AJAX

Params
 array $request The request.

Return array

Copied!
Copy

Filters the availability args used when retrieving the booking available times in AJAX

Params
 array $args    The args.
 array $request The request.

Return array

Copied!
Copy

Filters the formatted time when retrieving the booking available times in AJAX

Params
 string             $formatted_time The formatted time.
 string             $time           The time.
 WC_Product_Booking $product        The bookable product.

Return string

Copied!
Copy

Filters the availability args when retrieving the non-available dates in AJAX

Params
 array             $availability_args The args.
 array             $request           The request.

Return array

includes/class-yith-wcbk-assets.php

Copied!
Copy

Filters the params used by the JS script for the people selector

Params
 array $params The params.

Return array

Copied!
Copy

Filters the 'clear' text used in date-pickers

Params
 string $text The text.

Return string

Copied!
Copy

Filters the plugin scripts

Params
 array  $scripts The scripts.
 string $context The context.

Return array

Copied!
Copy

Filters the plugin styles

Params
 array  $styles  The styles.
 string $context The context.

Return array

Copied!
Copy

Filters if disabling the WooCommerce check for changes in settings panels

Params
 bool $disable True to disable the check; false otherwise.

Return bool

Copied!
Copy

Filters params of the global 'bk' JS variable

Params
 array  $bk      The params.
 string $context The context.

Return array

includes/class-yith-wcbk-booking-helper.php

Copied!
Copy

Filters the query args used when counting booked bookings in a specific period

Params
 array $query_args The query args.
 array $args       The args.

Return array

Copied!
Copy

Filters the count retrieved when counting booked bookings in a specific period

Params
 int   $count The count.
 array $args  The args.

Return int

Copied!
Copy

Filters the arguments when counting the maximum number of booked bookings in a large specific period

Params
 array $args The args.

Return array

Copied!
Copy

Filters the arguments when retrieving future bookings for a specific product

Params
 array $args       The args.
 int   $product_id The product ID.

Return array

Copied!
Copy

Filters the bookings retrieved for a specific order before being retrieved

Params
 YITH_WCBK_Booking[]|null $bookings      The bookings.
 int                      $order_id      The order ID.
 int                      $order_item_id The order item ID.

Return YITH_WCBK_Booking[]|null

Copied!
Copy

Filters the arguments used when retrieving bookings for a specific order

Params
 array $args          The arguments.
 int   $order_id      The order ID.
 int   $order_item_id The order item ID.

Return array

Copied!
Copy

Filters the arguments used when retrieving bookings in a specific time range

Params
 array $args The arguments.

Return array

Copied!
Copy

Filters the bookings retrieved in a specific time range

Params
 YITH_WCBK_Booking[] $bookings The bookings.
 array               $params   The request params.
 array               $args     The arguments.

Return YITH_WCBK_Booking[]

includes/class-yith-wcbk-cache.php

Copied!
Copy

Filters the object data ID in the internal cache

Params
 int          $id          The object ID.
 string       $object_type Object type.
 string|array $key_args    The key arguments.

Return int

Copied!
Copy

Filters the object data ID in the internal cache

Params
 int          $id          The object ID.
 string       $object_type Object type.
 string|array $key_args    The key arguments.

Return int

includes/class-yith-wcbk-cart.php

Copied!
Copy

Filters the request when retrieving booking data from request in cart

Params
 array $request The request.

Return array

Copied!
Copy

Filters the booking data retrieved from a specific request in cart

Params
 array              $booking_data The booking data.
 array              $request      The request.
 WC_Product_Booking $product      The product.

Return array

Copied!
Copy

Filters the booking props retrieved from booking data in cart

Params
 array $props        The props.
 array $booking_data The booking data.

Return array

Copied!
Copy

Filters the booking data from a specific booking

Params
 array             $booking_data The booking data.
 YITH_WCBK_Booking $booking      The booking.

Return array

Copied!
Copy

Filters the availability args retrieved from booking data in cart

Params
 array $args         The args.
 array $booking_data The booking data.

Return array

Copied!
Copy

Filters the product id to be translated (if you need to translate it)

Params
 int $product_id The args.

Return int

Copied!
Copy

Filters the message shown in cart when it's not possible adding to cart a bookable product (with the selected data: dates, persons, and so on...)

Params
 string $html_message  The HTML message.
 string $cart_url      Cart URL.
 string $product_title The product title.
 string $remained_text The text explaining how much "seats" are available.

Return string

Copied!
Copy

Filters the validation when adding a bookable product to the cart

Params
 bool               $passed_validation True if passed validation; false otherwise.
 WC_Product_Booking $product           The bookable product.
 array              $booking_data      The booking data.

Return bool

Copied!
Copy

Filters the item data related to a bookable product item in cart (before the totals item data)

Params
 array              $booking_item_data The  item data.
 array              $cart_item         The cart item.
 WC_Product_Booking $product           The bookable product.

Return array

includes/class-yith-wcbk-date-helper.php

Copied!
Copy

Filters the difference of 2 dates

Params
 bool|DateInterval|int $value      The value.
 int                   $timestamp1 The first timestamp.
 int                   $timestamp2 The second timestamp.
 string                $return     The return type.

Return bool|DateInterval|int

includes/class-yith-wcbk-endpoints.php

Copied!
Copy

Filters the booking plugin endpoints

Params
 array $endpoints The endpoints.

Return array

Copied!
Copy

Filters the 'bookings' endpoint

Params
 string $endpoint The endpoint.

Return string

Copied!
Copy

Filters if this is the current endpoint

Params
 bool $is_current_endpoint True if we're in the current endpoint; false otherwise.

Return bool

Copied!
Copy

Filters the 'bookings' endpoint

Params
 string $endpoint The endpoint.

Return string

Copied!
Copy

Filters the 'bookings' endpoint

Params
 string $endpoint The endpoint.

Return string

Copied!
Copy

Filters the number of bookings to be shown per page in the "My Account > Bookings" page

Params
 int $per_page The number of bookings to be shown per page.

Return int

includes/class-yith-wcbk-frontend-action-handler.php

Copied!
Copy

Filters the product ID when creating a booking for a confirmation request

Params
 int $product_id The product ID.

Return int

Copied!
Copy

Filters if the user need to be logged-in to make a confirmation request

Params
 bool $login_required True if the login is required; false otherwise.

Return bool

Copied!
Copy

Filters the notice message shown when trying to request confirmation if login is required and the user is not logged-in

Params
 string $notice_message The notice message.

Return string

Copied!
Copy

Filters the button text shown when trying to request confirmation if login is required and the user is not logged-in

Params
 string $text The text.

Return string

Copied!
Copy

Filters the notice shown when trying to request confirmation if login is required and the user is not logged-in

Params
 string             $notice  The notice.
 WC_Product_Booking $product The product.

Return string

Copied!
Copy

Filters the success notice shown on request confirmation

Params
 string $notice The notice.

Return string

Copied!
Copy

Filters the error notice shown on request confirmation

Params
 string $notice The notice.

Return string

Copied!
Copy

Filters the redirect URL after requesting confirmation

Params
 bool|string        $redirect_url The redirect URL.
 bool               $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.

Return bool|string specific redirect URL; False to set the default redirect.

includes/class-yith-wcbk-language.php

Copied!
Copy

Filters a specific label

Params
 string $label The label.
 string $key   The key.

Return string

Copied!
Copy

Filters the default labels label

Params
 array $labels The labels.

Return array

includes/class-yith-wcbk-logger.php

Copied!
Copy

Filters if the logger is enabled

Params
 bool $enabled True if enabled; false otherwise.

Return bool

includes/class-yith-wcbk-orders.php

Copied!
Copy

Params
 YITH_WCBK_Booking[] $bookings The bookings.
 WC_Order            $order    The order.

Return YITH_WCBK_Booking[]

Copied!
Copy

Params
 YITH_WCBK_Booking[] $bookings The bookings.
 WC_Order            $order    The order.

Return YITH_WCBK_Booking[]

Copied!
Copy

Filters the "Related Bookings" title

Params
 string $title The title.

Return string

Copied!
Copy

Filters the booking order item detals

Params
 array $details      The details.
 array $booking_data Booking data array.
 int   $product_id   Product ID.

Return array

Copied!
Copy

Filters if checking the order for bookings

Params
 bool  $check      True to check; false otherwise.
 int   $order_id   The order ID.
 array $deprecated Deprecated param.

Return bool

Copied!
Copy

Filters if checking the order item for booking

Params
 bool          $check      True to check; false otherwise.
 WC_Order      $order      The order.
 WC_Order_Item $order_item The order item.

Return bool

Copied!
Copy

Filters the product id to be translated (if you need to translate it)

Params
 int $product_id The args.

Return int

Copied!
Copy

Filters if forcing private meta-data on booking creating in Orders

Params
 bool   $force True to force private meta-data; false otherwise.
 string $prop  The prop.

Return bool

Copied!
Copy

Filters if associating order data to a newly created booking

Params
 bool              $associate  True to associate; false otherwise.
 YITH_WCBK_Booking $booking    The booking.
 WC_Order          $order      The order.
 WC_Order_Item     $order_item The order_item.

Return bool

Copied!
Copy

Filters if setting booking as paid (when setting the order to 'processing' or 'completed')

Params
 bool     $set_as_paid True to set as paid; false otherwise.
 int      $order_id    Order ID.
 WC_Order $order       The Order.

Return bool

Copied!
Copy

Filters if setting a specific booking as paid

Params
 bool              $set_as_paid True to set as paid; false otherwise.
 YITH_WCBK_Booking $booking     The booking.
 WC_Order          $order       The Order.

Return bool

includes/class-yith-wcbk-post-types.php

Copied!
Copy

Filters the post-types handled by the plugin

Params
 string[] $post_types The post types.

Return string[]

includes/class-yith-wcbk-settings.php

Copied!
Copy

Filters the enable status of the internal cache

Params
 boolean $enabled True if enabled; false otherwise.

Return boolean

includes/class-yith-wcbk.php

Copied!
Copy

Filters if the specific user has permissions to view booking and its details

Params
 boolean           $can     True if the user has permissions to view; false otherwise.
 int               $user_id The user ID.
 YITH_WCBK_Booking $booking The booking.

Return boolean

Copied!
Copy

Filters the check result on the current request

Params
 boolean $result True if this is a request for the specific "type"; false otherwise.
 string  $type   The type of the request (i.e.: admin, rest, ajax, cron, frontend).

Return boolean

includes/data/abstract-yith-wcbk-booking.php

Copied!
Copy

Filters the product title shown in booking details

Params
 string            $title   The product title.
 YITH_WCBK_Booking $booking The booking.

Return string

includes/data/class-wc-product-booking.php

Copied!
Copy

Filters the bookable product price

Params
 string             $price   The price.
 WC_Product_Booking $product The bookable product.

Return string

Copied!
Copy

Filters the bookable product HTML price

Params
 string             $price_html The HTML price.
 WC_Product_Booking $product    The bookable product.

Return string

Copied!
Copy

Filters the args used when checking a bookable product is available

Params
 array              $args    The arguments.
 WC_Product_Booking $product The bookable product.

Return array

Copied!
Copy

Filters the available data when checking for the availability of a bookable product

Params
 array              $available_data The available data.
 array              $args           Arguments.
 WC_Product_Booking $product        The bookable product.

Return array

Copied!
Copy

Filters the available status when checking for the availability of a bookable product

Params
 boolean            $available Available flag.
 array              $args      Arguments.
 WC_Product_Booking $product   The bookable product.

Return boolean

Copied!
Copy

Filters the non-available reasons when checking for the availability of a bookable product

Params
 array              $non_available_reasons Non-available reasons.
 array              $args                  Arguments.
 WC_Product_Booking $product               The bookable product.
 int                $_remained             The number of seats remained.

Return array

Copied!
Copy

Filters the available data when checking for the availability of a bookable product

Params
 array              $available_data The available data.
 array              $args           Arguments.
 WC_Product_Booking $product        The bookable product.

Return array

Copied!
Copy

Filters if the bookable product is virtual

Params
 boolean            $is_virtual Is virtual flag.
 WC_Product_Booking $product    The bookable product.

Return boolean

Copied!
Copy

Filters the calculated price of the bookable product

Params
 float|int          $price   The price.
 array              $args    The arguments.
 WC_Product_Booking $product The bookable product.

Return float|int

includes/data/class-yith-wcbk-product-availability-handler.php

Copied!
Copy

Filters the product id to be translated (if you need to translate it)

Params
 int $product_id The args.

Return int

includes/functions.yith-wcbk-booking.php

Copied!
Copy

Filters the booking available statuses

Params
 array $statuses The statuses.

Return array

Copied!
Copy

Filters the booking object before returning it

Params
 YITH_WCBK_Booking $booking The booking.

Return YITH_WCBK_Booking

Copied!
Copy

Filters the booking statuses considered to be booked (so, they'll block the related dates)

Params
 string[] $statuses The statuses.

Return string[]

Copied!
Copy

Filters the booking statuses available in the bulk-actions on admin side

Params
 string[] $statuses The statuses.

Return string[]

Copied!
Copy

Filters if using the lookup tables for bookings.
Be careful by using this filter, since setting it to false will negatively impact on performances

Params
 boolean $use True to use it; false otherwise.

Return boolean

includes/functions.yith-wcbk-core.php

Copied!
Copy

Filters the duration units

Params
 array $duration_units The duration units.
 int   $plural_control The plural control (1 for singular; 2 for plural).

Return array

Copied!
Copy

Filters the duration units for the "cancel" option

Params
 array $duration_units The duration units.

Return array

Copied!
Copy

Filters the minimum minute increment

Params
 int $increment The increment.

Return int

Copied!
Copy

Filters the maximum number of months to load for a specific duration unit

Params
 int    $months_to_load The number of months to load.
 string $unit           The duration unit.

Return int

Copied!
Copy

Filters the HTML info for a specific user (to be shown on admin side)

Params
 string            $html    The HTML info.
 YITH_WCBK_Booking $booking The booking.
 WP_User           $user    The user.

Return string

Copied!
Copy

Filters the HTML info for a non-defined or not found user (to be shown on admin side)

Params
 string            $html    The HTML info.
 YITH_WCBK_Booking $booking The booking.

Return string

Copied!
Copy

Filters the default plugin colors

Params
 array $defaults The colors.

Return array

Copied!
Copy

Filters the parameter retrieved from the query string

Params
 mixed $value The value.
 string $key The key.

Return mixed

includes/functions.yith-wcbk-labels.php

Copied!
Copy

Filters the formatted duration

Params
 string $formatted_duration The formatted duration.
 int    $duration           The duration.
 string $unit               The duration unit.

Return string

Copied!
Copy

Filters the labels for booking meta(s)

Params
 array $labels The labels.

Return array

Copied!
Copy

Filters the label for a specific booking meta

Params
 string $label               The label.
 string $key                 The key.
 array  $booking_meta_labels The booking meta labels.

Return string

Copied!
Copy

Filters the duration label

Params
 string $label         The label.
 int    $duration      The duration.
 string $duration_unit The duration unit.
 string $mode          The mode (allowed values: duration | unit | period).

Return string

Copied!
Copy

Filters the duration label string

Params
 string      $label         The label.
 string      $duration_unit Duration unit.
 bool        $plural        Plural flag.
 bool|string $mode          The mode (allowed values: duration | unit | period).

Return string

includes/functions.yith-wcbk-product.php

Copied!
Copy

Filters the CSS classes for availability-per-unit in calendar

Params
 string[]           $classes      The label.
 array              $availability The availability info array.
 WC_Product_Booking $product      The product.

Return string[]

Copied!
Copy

Filters the minimum date when retrieving the booking form date information

Params
 string             $min_date The value.
 WC_Product_Booking $product  The product.
 array              $args     Arguments.

Return string

Copied!
Copy

Filters the maximum date when retrieving the booking form date information

Params
 string             $min_date The value.
 WC_Product_Booking $product  The product.
 array              $args     Arguments.

Return string

Copied!
Copy

Filters the price to be displayed

Params
 string     $price_to_display The value.
 WC_Product $product          Booking product.
 string     $price            The price.
 bool       $allow_negative   Allow negative price flag.

Return string

Copied!
Copy

Filters the options for costs included in shown price

Params
 array $options The options.

Return array

includes/functions.yith-wcbk-rest.php

Copied!
Copy

Filters the permission check in REST API

Params
 boolean $permission  True if it has permission; False otherwise.
 string  $context     The REST context (create, read, update, delete).
 string  $object_type The object type.

Return boolean

includes/integrations/plugins/wpml/class-yith-wcbk-wpml-booking.php

Copied!
Copy

Filters the product id to be translated (if you need to translate it)

Params
 int $product_id The args.

Return int

plugin-options/configuration-options.php

Copied!
Copy

Filters the sub-tabs of the Configuration panel page

Params
 array $sub_tabs The sub-tabs.

Return array

Copied!
Copy

Filters the options of the Configuration panel page

Params
 array $options The options.

Return array

plugin-options/configuration/availability-rules-options.php

Copied!
Copy

Filters the options of the Availability Rules panel page

Params
 array $options The options.

Return array

plugin-options/configuration/price-rules-options.php

Copied!
Copy

Filters the options of the Price Rules panel page

Params
 array $options The options.

Return array

plugin-options/dashboard-options.php

Copied!
Copy

Filters the options of the Dashboard panel page

Params
 array $options The options.

Return array

plugin-options/meta-boxes/search-form-options.php

Copied!
Copy

Filters the option fields of the search form meta-box

Params
 array $options The options.

Return array

plugin-options/settings-options.php

Copied!
Copy

Filters the sub-tabs of the Settings panel page

Params
 array $sub_tabs The sub-tabs.

Return array

Copied!
Copy

Filters the options of the Settings panel page

Params
 array $options The options.

Return array

plugin-options/settings/booking-forms-options.php

Copied!
Copy

Filters the options of the Booking Forms panel page

Params
 array $options The options.

Return array

plugin-options/settings/calendars-options.php

Copied!
Copy

Filters the options of the Calendars panel page

Params
 array $options The options.

Return array

plugin-options/settings/customization-options.php

Copied!
Copy

Filters the options of the Customization panel page

Params
 array $options The options.

Return array

plugin-options/tools-options.php

Copied!
Copy

Filters the options of the Tools panel page

Params
 array $options The options.

Return array

plugin-options/tools/logs-options.php

Copied!
Copy

Filters the options of the Logs panel page

Params
 array $options The options.

Return array

plugin-options/tools/tools-options.php

Copied!
Copy

Filters the options of the Tools > Tools panel page

Params
 array $options The options.

Return array

templates/booking/booking-actions.php

Copied!
Copy

Filters the booking actions

Params
 array             $actions The booking actions.
 YITH_WCBK_Booking $booking The booking.

Return array

templates/booking/booking-details.php

Copied!
Copy

Filters order id in booking details

Params
 int               $order_id The order id.
 YITH_WCBK_Booking $booking  The booking.

Return int

templates/booking/pdf/booking-details.php

Copied!
Copy

Filters order id in booking details in PDF

Params
 int               $order_id The order id.
 YITH_WCBK_Booking $booking  The booking.
 bool              $is_admin True if this is an admin PDF; false otherwise.

Return int

templates/booking/pdf/booking.php

Copied!
Copy

Filters the font family used in PDF

Params
 string $font_family The font family.

Return string

templates/booking/pdf/header.php

Copied!
Copy

Filters the logo URL in PDF

Params
 string $logo_url The URL.

Return string

templates/booking/pdf/user-info.php

Copied!
Copy

Filters if showing user info in booking PDF only for admin

Params
 bool $show True to show the info; false otherwise.

Return bool

templates/emails/email-booking-details.php

Copied!
Copy

Filters order id in booking details in emails

Params
 int               $order_id      The order id.
 YITH_WCBK_Booking $booking       The booking.
 bool              $sent_to_admin True if this is an admin email; false otherwise.
 bool              $plain_text    True if this is a plain email; false otherwise.
 YITH_WCBK_Email   $email         The email.

Return int

templates/emails/plain/email-booking-details.php

Copied!
Copy

Filters order id in booking details in emails

Params
 int               $order_id      The order id.
 YITH_WCBK_Booking $booking       The booking.
 bool              $sent_to_admin True if this is an admin email; false otherwise.
 bool              $plain_text    True if this is a plain email; false otherwise.
 YITH_WCBK_Email   $email         The email.

Return int

templates/myaccount/bookings-table.php

Copied!
Copy

Filters the columns of the table shown in My Account > Bookings

Params
 array $columns The columns.

Return array

templates/myaccount/bookings.php

Copied!
Copy

Filters the 'bookings' endpoint

Params
 string $endpoint The endpoint.

Return string

templates/printer/types/time-select.php

Copied!
Copy

Filters the minute step for the time-select

Params
 int $step The step in minutes.

Return int

templates/single-product/add-to-cart/bookable.php

Copied!
Copy

Filters if showing the bookable status message in the booking form

Params
 bool $show True to show the message; false otherwise.

Return bool

Copied!
Copy

Filters the bookable status message in booking form

Params
 string             $bookable_text The text.
 bool               $bookable      True if the product is bookable; false otherwise.
 int                $from          The 'from' timestamp.
 int                $to            The 'to' timestamp.
 WC_Product_Booking $product       The product.

Return string

Copied!
Copy

Filters the non-available reasons

Params
 string             $non_available_reasons_html The text.
 array              $non_available_reasons      The reasons.
 int                $from                       The 'from' timestamp.
 int                $to                         The 'to' timestamp.
 WC_Product_Booking $product                    The product.

Return string

templates/single-product/add-to-cart/booking-form/dates/duration.php

Copied!
Copy

Filters the duration label in booking form

Params
 string             $duration_label The label.
 WC_Product_Booking $product        The product.

Return string

templates/single-product/add-to-cart/booking.php

Copied!
Copy

Filters if showing the booking form

Params
 bool $show True to show it; false otherwise.

Return int

views/calendar/html-booking-calendar-booking-list.php

Copied!
Copy

Filters the bookings shown in admin calendar

Params
 YITH_WCBK_Booking_Abstract[] $bookings The bookings.

Return YITH_WCBK_Booking_Abstract[]

Copied!
Copy

Filters the booking title shown in admin calendar

Params
 string            $formatted_name The title.
 YITH_WCBK_Booking $booking        The booking.

Return string

views/calendar/html-booking-calendar-single-booking-data.php

Copied!
Copy

Filters the title shown in booking data in admin calendar

Params
 string            $title   The title.
 YITH_WCBK_Booking $booking The booking.

Return string

views/create-booking.php

Copied!
Copy

Filters the default selected value for 'assign booking' option when creating a booking manually

Params
 string $value The value.

Return string

views/metaboxes/html-booking-meta-data.php

Copied!
Copy

Filters if showing the calculated amount for the booking (admin side)

Params
 bool              $show    True to show; false otherwise.
 YITH_WCBK_Booking $booking The booking.

Return bool

views/product-tabs/html-settings-tab.php

Copied!
Copy

Filters the custom attributes for the 'buffer' option field shown in product settings on admin side

Params
 string $custom_attributes The custom attributes.

Return string

Actions

includes/admin/post-types/class-yith-wcbk-booking-create.php

Copied!
Copy

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

Copied!
Copy

Hook to print the meta-box content

Params
 WP_Post $post The post.

Copied!
Copy

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

Copied!
Copy

Allows third-party plugin to handle custom actions before printing the booking details row

Params
 YITH_WCBK_Booking $the_booking The booking.
 int               $post_id     The booking ID.

Copied!
Copy

Hook to render custom columns in bookings' table

Params
 string            $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

Copied!
Copy

Hook to output the add-to-cart form for the bookable product


includes/builders/gutenberg/render/class-yith-wcbk-booking-form-block.php

Copied!
Copy

Hook to output the add-to-cart form for the bookable product


includes/class-yith-wcbk-ajax.php

Copied!
Copy

Hook to output the booking form

Params
 WC_Product_Booking $product The bookable product.
 array              $args    Arguments.

Copied!
Copy

Hook to handle a specific admin ajax request


Copied!
Copy

Hook to handle a specific frontend ajax request


includes/class-yith-wcbk-cache.php

Copied!
Copy

Hook fired when deleting cache data for a specific object type

Params
 int  $id       The ID of the object.
 int  $key_args The key arguments.
 bool $result   True if the deletion succeeded; false otherwise.

Copied!
Copy

Hook fired when deleting cache data for a specific object

Params
 string $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

Copied!
Copy

Hook to perform any action after add-to-cart validation

Params
 WC_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

Copied!
Copy

Hook to perform any action after request confirmation action

Params
 bool               $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

Copied!
Copy

Action fired after updating the plugin


Copied!
Copy

Action fired after installing the plugin


includes/class-yith-wcbk-modules.php

Copied!
Copy

Hook fired when a specific module is activated


Copied!
Copy

Hook fired when a specific module is deactivated


includes/class-yith-wcbk-orders.php

Copied!
Copy

Hook to output the bookings' list table in My Account > Bookings

Params
 YITH_WCBK_Booking[] $bookings The bookings.

Copied!
Copy

Hook to perform any action when an order is created when creating a booking manually

Params
 YITH_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

Copied!
Copy

Hook to perform any action after loading the post-type handlers


Copied!
Copy

Hook to perform any action when registering the plugin post-types


Copied!
Copy

Hook to perform any action after when processing meta of a specific post-type (in meta-boxes)

Params
 int     $post_id The post ID.
 WP_Post $post    The post.

includes/class-yith-wcbk-product-post-type-admin.php

Copied!
Copy

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

Copied!
Copy

Hook to perform any action when a booking is created

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action when a booking is created

Params
 int               $id      The booking ID.
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action when a booking is read

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action when a booking is updated

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action when a booking is updated

Params
 int               $id      The booking ID.
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action before deleting a booking

Params
 int               $id      The booking ID.
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action after deleting a booking

Params
 int $id The booking ID.

Copied!
Copy

Hook to perform any action when trashing a booking

Params
 int               $id      The booking ID.
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action when reading data for a booking

Params
 YITH_WCBK_Booking            $booking    The booking.
 YITH_WCBK_Booking_Data_Store $data_store The data store.

Copied!
Copy

Hook to perform any action to handle updated pros when saving a booking

Params
 YITH_WCBK_Booking $booking       The booking.
 array             $updated_props The updated props.

Copied!
Copy

Hook to perform any action when clearing caches for a booking object

Params
 YITH_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

Copied!
Copy

Hook to perform any action when a global availability rule is created

Params
 YITH_WCBK_Global_Availability_Rule $rule The rule.

Copied!
Copy

Hook to perform any action when a global availability rule is read

Params
 YITH_WCBK_Global_Availability_Rule $rule The rule.

Copied!
Copy

Hook to perform any action when a global availability rule is updated

Params
 YITH_WCBK_Global_Availability_Rule $rule The rule.

Copied!
Copy

Hook to perform any action before deleting a global availability rule

Params
 YITH_WCBK_Global_Availability_Rule $rule The rule.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action when creating a global price rule

Params
 YITH_WCBK_Global_Price_Rule $rule The rule.

Copied!
Copy

Hook to perform any action when reading a global price rule

Params
 YITH_WCBK_Global_Price_Rule $rule The rule.

Copied!
Copy

Hook to perform any action when updating a global price rule

Params
 YITH_WCBK_Global_Price_Rule $rule The rule.

Copied!
Copy

Hook to perform any action before deleting a global price rule

Params
 YITH_WCBK_Global_Price_Rule $rule The rule.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action when reading data for a bookable product

Params
 WC_Product_Booking                       $product    The bookable product.
 YITH_WCBK_Product_Booking_Data_Store_CPT $data_store The data store.

Copied!
Copy

Hook to perform any action to handle updated pros when saving a bookable product

Params
 WC_Product_Booking $product       The bookable product.
 array              $updated_props The updated props.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action before saving an object

Params
 YITH_WCBK_Data $this       The object.
 object         $data_store The data store.

Copied!
Copy

Hook to perform any action after saving an object

Params
 YITH_WCBK_Data $this       The object.
 object         $data_store The data store.

includes/data/class-wc-product-booking.php

Copied!
Copy

Hook to perform any action before checking the availability of a bookable product

Params
 array              $args    The arguments.
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Hook to perform any action before calculating the bookable product cost

Params
 int                $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

Copied!
Copy

Hook to perform any action on booking status transition

Params
 bool              $status_to The new status.
 int               $id        The booking ID.
 YITH_WCBK_Booking $booking   The booking.

Copied!
Copy

Hook to perform any action on booking status transition

Params
 int               $id      The booking ID.
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to perform any action on booking status transition

Params
 int               $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

Copied!
Copy

Hook to perform any action before sending email

Params
 YITH_WCBK_Email $email             The email..
 bool            $is_customer_email True if is a mail for the customer.

Copied!
Copy

Hook to perform any action after sending email

Params
 YITH_WCBK_Email $email             The email..
 bool            $is_customer_email True if is a mail for the customer.

Copied!
Copy

Action fired to render the email booking details

Params
 YITH_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.

Copied!
Copy

Action fired to render the email booking details

Params
 YITH_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

Copied!
Copy

Hook to output something at the start of the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output the booking form content and fields

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output the price in the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output the message in the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

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

Copied!
Copy

Hook to output the add-to-cart form for the bookable product


init-global.php

Copied!
Copy

Action fired after the Booking plugin is loaded


Copied!
Copy

Action fired to initialize the Booking plugin


modules/costs/includes/functions.php

Copied!
Copy

Hook to perform any action before retrieving Extra Costs

Params
 array $args The arguments passed to the get_posts.

Copied!
Copy

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

Copied!
Copy

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

Copied!
Copy

Used to synchronize the Google Calendar event

Params
 int $booking_id The booking ID.

Copied!
Copy

Used to synchronize the Google Calendar event

Params
 int $booking_id The booking ID.

modules/google-maps/includes/class-yith-wcbk-maps.php

Copied!
Copy

Hook to perform some action after successfully retrieving the location coordinates by the address

Params
 array  $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

Copied!
Copy

Hook to perform any action before retrieving Person Types

Params
 array $args The arguments passed to the get_posts.

Copied!
Copy

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

Copied!
Copy

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

Copied!
Copy

Hook to perform any action before deleting a Resource

Params
 int                $id       The resource ID.
 YITH_WCBK_Resource $resource The resource.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action before deleting a Search Form

Params
 int                   $id          The resource ID.
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action before setting the search product query (when searching bookable products though a Search Form)


Copied!
Copy

Hook to render something after the "no booking available" message (if no bookable products was found)


modules/search-forms/includes/functions.php

Copied!
Copy

Hook to perform any action before retrieving results when searching for bookable products

Params
 array $search_args The search arguments (used by the get_posts function).
 array $args        The function args.

Copied!
Copy

Hook to perform any action after retrieving results when searching for bookable products

Params
 array $search_args The search arguments (used by the get_posts function).
 array $args        The function args.

modules/search-forms/templates/booking-search-form.php

Copied!
Copy

Hook to render something before the Search Form

Params
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

Hook to render something before printing a field of the Search Form

Params
 string                $field_key   The field key.
 array                 $field_data  The field data..
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

Hook to render something when printing a field of the Search Form

Params
 string                $field_key   The field key.
 array                 $field_data  The field data..
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

Hook to render something after printing a field of the Search Form

Params
 string                $field_key   The field key.
 array                 $field_data  The field data..
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

Hook to render something after the fields rendered in the Search Form

Params
 YITH_WCBK_Search_Form $search_form The search form.

Copied!
Copy

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

Copied!
Copy

Hook to render something before the Search Form results


Copied!
Copy

Hook to render something after the Search Form results


modules/search-forms/templates/results/single.php

Copied!
Copy

Hook to render something before the Search Form result item

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render the item thumbnails in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render something before the item title in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render the item title in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render something after the item title in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render the item price in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

Hook to render the item add-to-cart in the search form results

Params
 array $booking_data Booking data.

Copied!
Copy

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

Copied!
Copy

Hook to perform any action before deleting a Service

Params
 int               $id      The service ID.
 YITH_WCBK_Service $service The service.

Copied!
Copy

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

Copied!
Copy

Hook to allow setting props or perform any action when processing the service meta

Params
 YITH_WCBK_Service $service The service.

Copied!
Copy

Hook to perform any action after saving the Service fields

Params
 int $term_id      The Term ID.
     $service_data $service_data The service data.

modules/services/includes/data/class-yith-wcbk-service.php

Copied!
Copy

Hook to perform any action when a Service is loaded

Params
 YITH_WCBK_Service $this The service.

templates/booking/booking-details.php

Copied!
Copy

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

Copied!
Copy

Hook to output something in the booking PDF template withing the tag


Copied!
Copy

Hook to output something in the booking PDF template in the header section

Params
 YITH_WCBK_Booking $booking  The booking.
 boolean           $is_admin True if this is a PDF for the admin, false otherwise.

Copied!
Copy

Hook to output something in the booking PDF template in the content section

Params
 YITH_WCBK_Booking $booking  The booking.
 boolean           $is_admin True if this is a PDF for the admin, false otherwise.

Copied!
Copy

Hook to output something in the booking PDF template in the footer section

Params
 YITH_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

Copied!
Copy

Hook to output something before the booking details table in emails

Params
 YITH_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

Copied!
Copy

Hook to output something after the booking details table in emails

Params
 YITH_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

Copied!
Copy

Hook to output something before the booking details table in emails

Params
 YITH_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

Copied!
Copy

Hook to output something after the booking details table in emails

Params
 YITH_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

Copied!
Copy

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.

Copied!
Copy

Hook to output something in a specific column in the bookings' list in My Account > Bookings

Params
 WC_Order          $the_order The order.
 YITH_WCBK_Booking $booking   The booking.

Copied!
Copy

Hook to output something in the "actions" column in the bookings' list in My Account > Bookings

Params
 YITH_WCBK_Booking $booking          The booking.
 bool              $show_view_action True to include the "view" action.

Copied!
Copy

Hook to output something before pagination in the bookings' list in My Account > Bookings


Copied!
Copy

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

Copied!
Copy

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.

Copied!
Copy

Hook to output the bookings' list table in My Account > Bookings

Params
 YITH_WCBK_Booking[] $bookings The bookings.

Copied!
Copy

Hook to output something before the pagination in the bookings' list in My Account > Bookings


Copied!
Copy

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

Copied!
Copy

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

Copied!
Copy

Used to output title, rating and price before the booking add-to-cart form in the booking form shortcode


Copied!
Copy

Hook to output the add-to-cart form for the bookable product


Copied!
Copy

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

Copied!
Copy

Hook to output the booking form date fields

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

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

Copied!
Copy

Hook to output something after the "duration" label in the booking form

Params
 int    $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

Copied!
Copy

Used to output price and rating before the booking add-to-cart form in the widget


Copied!
Copy

Hook to output something before the booking add-to-cart form in the widget


Copied!
Copy

Hook to output the add-to-cart form for the bookable product


Copied!
Copy

Hook to output something after the booking add-to-cart form in the widget


templates/single-product/add-to-cart/booking.php

Copied!
Copy

Hook to output something before the booking form


Copied!
Copy

Hook to output something at the start of the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output meta in the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output the booking form content and fields

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Used to output the message in the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Hook to output something at the end of the booking form

Params
 WC_Product_Booking $product The bookable product.

Copied!
Copy

Hook to output something before the add-to-cart button in the booking form


Copied!
Copy

Hook to output something after the add-to-cart button in the booking form


views/calendar/html-booking-calendar-action-bar.php

Copied!
Copy

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

Copied!
Copy

Hook to output something before single booking data shown in the admin calendar

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to output something before single booking data in the table shown in the admin calendar

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to output something after single booking data in the table shown in the admin calendar

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to output something after single booking data shown in the admin calendar

Params
 YITH_WCBK_Booking $booking The booking.

views/create-booking.php

Copied!
Copy

Allows to render some content in the booking creation template before the default options


Copied!
Copy

Allows to render some content in the booking creation template after the default options


views/metaboxes/html-booking-meta-actions.php

Copied!
Copy

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

Copied!
Copy

Hook to output something in the booking data meta-box after the first column

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

Hook to output something in the booking data meta-box after the second column

Params
 YITH_WCBK_Booking $booking The booking.

Copied!
Copy

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

Copied!
Copy

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

Copied!
Copy

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

Copied!
Copy

Hook to output something in the "availability" tab in the bookable product edit page after the availability rule options

Params
 string                      $_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.