How to hidden fields in Booking form

When support we got the question “How to hidden field in Booking form” from some clients. So we created the section to introduce to do that. Please follow steps:

  1. You need to install the latest version of the theme and travel booking plugin.
  2. Activate child theme. In the package we included the child theme, you can use it to install on your site.
  3. Add the below code to functions.php in child theme

— Hidden field Fist Name

add_filter('tb_show_first_name', 'func_hide_first_name');
function func_hide_first_name($show) {
 $show = false;
 return $show;
}

— Hidden field Last Name

add_filter('tb_show_last_name', 'func_hide_last_name');
function func_hide_last_name($show) {
 $show = false;
 return $show;
}

— Hidden field Email

add_filter('tb_show_email', 'func_hide_email_field');
function func_hide_email_field($show) {
 $show = false;
 return $show;
}

— Hidden field Phone

add_filter('tb_show_phone', 'func_hide_phone_field');
function func_hide_phone_field($show) {
 $show = false;
 return $show;
}

— Hidden field Date

add_filter('tb_show_date_book', 'func_hide_date_book');
function func_hide_date_book($show) {
 $show = false;

 return $show;
}