0.00  View Cart

easy_booking_start_text

Overrides the “Start” text.

Args: $text (string), $product (WC_Product object)


easy_booking_end_text

Overrides the “End” text.

Args: $text (string), $product (WC_Product object)


easy_booking_one_date_price

Returns price after selecting date (for one date bookings).

Args: (float) $booking_price, (WC_Product object) $product, (WC_Product or WC_Product_Variation object) $_Product, (array) $booking_data (string) $price_type


easy_booking_two_dates_price
Returns price after selecting dates (for two dates bookings).

Args: (float) $booking_price, (WC_Product object) $product, (WC_Product or WC_Product_Variation object) $_Product, (array) $booking_data (string) $price_type


easy_booking_fragments

Returns fragments after selecting the date(s).

Args: (array) $fragments


easy_booking_frontend_parameters

Passes parameters to use on the frontend.

Args: (array) $parameters


easy_booking_set_booking_price

Returns the booking price set when adding a product to the cart.

Args: (string) $booking_price, (array) $cart_item


easy_booking_loop_add_to_cart_link

Returns the “Add to cart” button for bookable product (set as “Select date(s)” by default).

Args: (string) $link, (WC_Product) $product


easy_booking_information_text

Adds an information text before the date(s) selection.

Args: (string) $text, (WC_Product or WC_Product_Variation) $product


easy_booking_new_price_args

Passes extra arguments to the displayed booking price.

Args: (array) $args


easy_booking_display_price

Overrides the booking price on the archive and product pages (displayed as “/ day” by default).

Args: (string) $content, (WC_Product) $product, (string) $content


easy_booking_reports_columns

Adds additional columns on the “Reports” page.

Args: (array) $columns


easy_booking_settings_capability

Overrides the default capability level to access the Easy Booking settings page (default to “manage_options”).

Args: (string) $capability


easy_booking_reports_tabs

Adds additional tabs on the “Reports” page.

Args: (array) $tabs


easy_booking_settings_tabs

Adds additional tabs on the “Settings” page.

Args: (array) $tabs


easy_booking_get_order_statuses

Returns the order statuses to get the booked products from orders (used for reports).

Args: (array) $statuses


easy_booking_booked_reports

Returns a booked product when getting all booked products (used for reports). Allows to pass extra data.

Args:(array) $data


easy_booking_get_price_html

Returns the text added after the price of a bookable product (default “/day”, “/night”, “/week”, etc.).

Args: (string) $price_html, (WC_Product object) $product, (string) $booking_duration, (integer) $custom_duration


easy_booking_display_status_pending
easy_booking_display_status_start
easy_booking_display_status_processing
easy_booking_display_status_end
easy_booking_display_status_completed

Returns the text displayed for each status in the “Reports” page.

Args: (string) $status


easy_booking_multiply_additional_costs

Maybe multiply additional costs by booking duration (default: false).

Args: (bool) true/false


easy_booking_display_average_price

Displays average price per day after selecting dates and calculating new booking price (defaut: false / true if you have Duration Discounts).

Args: (bool) true/false, (integer) $id


easy_booking_booking_price_details

Displays price details after selecting dates (default: returns booking duration and maybe average price).

Args: (string) $details, (WC_Product) $product, (array) $booking_data


wceb_reports_booked_products

Array of booked products to show in the “Reports” page.

Args: (array) $booked_products


easy_booking_product_booking_min

Product minimum booking duration.

Args: (string) $booking_min, (WC_Product or WC_Product_Variation) $product


easy_booking_product_booking_max

Product maximum booking duration.

Args: (string) $booking_max, (WC_Product or WC_Product_Variation) $product


easy_booking_product_first_available_date

Product first available date.

Args: (string) $first_available_date, (WC_Product or WC_Product_Variation) $product


easy_booking_allowed_product_types

Allowed product types for Easy Booking (default: simple, variable, grouped and bundle).

Args: (array) $product_types