Remove the 'time zone' display on the listings page

Is it possible to turn off the ‘time zone’ display on the listings page? Thank you.

Hi,

Sure, you can disable this feature in the WP Dashboard > HivePress > Settings > Bookings section. Simply uncheck the “Time Zones” box.

1 Like

Thank you.
I want to use the ‘time zone’ system, but I don’t need the ‘time zone’ display on the user-visible screen.
So I want to remove the ‘time zone’ display from the listing screen as seen by the user. Is this possible?

It may be possible to hide it via code customizations, but please note that this may cause issues if the customer and vendor timezones are different, the customer will assume that the booking will start in their timezone since the timezone of the booked listing will be hidden. Please let me know if it’s ok.

1 Like

Yes! No problem about it. Thank you!

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/booking_make',
	function ( $form ) {
		
		if(isset($form['fields']['_timezone'])){
			$form['fields']['_timezone']['type'] = 'hidden';	
		}

		return $form;
	},
	1000
);

add_filter(
	'hivepress/v1/forms/booking_confirm',
	function ( $form ) {
		
		if(isset($form['fields']['_timezone'])){
			$form['fields']['_timezone']['type'] = 'hidden';	
		}

		return $form;
	},
	1000
);
1 Like

Thank you!
It really helped me a lot.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.