Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL SiR-DanieL/functions.php
Last active Nov 28, 2018

What would you like to do?
add_filter( 'booking_form_params', 'change_booking_form_params' );
function change_booking_form_params( $params ) {
$params['i18n_date_unavailable' = 'This date is unavailable';
$params['i18n_date_fully_booked'] = 'This date is fully booked and unavailable';
$params['i18n_date_partially_booked'] = 'This date is partially booked - but bookings still remain';
$params['i18n_date_available'] = 'This date is available';
$params['i18n_start_date'] = 'Choose a Start Date';
$params['i18n_end_date'] = 'Choose an End Date';
$params['i18n_dates'] = 'Dates';
$params['i18n_choose_options'] = 'Please select the options for your booking above first';
return $params;

This comment has been minimized.

Copy link

judelgado commented Nov 28, 2018

Missing ] on line 3 causes error on pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.