Skip to content

Instantly share code, notes, and snippets.

@SirDarcanos
Last active November 28, 2018 19:41
Show Gist options
  • Save SirDarcanos/00b8adff446789453a420852a4baf620 to your computer and use it in GitHub Desktop.
Save SirDarcanos/00b8adff446789453a420852a4baf620 to your computer and use it in GitHub Desktop.
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;
}
@judelgado
Copy link

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