Mandatory profile settings (Booking offset, Booking window, Minimum and Maximum booking duration)

Hi HivePress Team,

I would like to have these profile settings mandatory.

Also, would it be possible that it will show on listings - attributes (Display - Areas - Page secondary)?

Thnak you.

2022-12-08 (7)

To set these profile settings mandatory, please try this PHP snippet:

	function( $form ) {
		$form['fields']['booking_offset']['required'] = true;
		$form['fields']['booking_window']['required'] = true;
		$form['fields']['booking_min_length']['required'] = true;
		$form['fields']['booking_max_length']['required'] = true;
		return $form;

For the Display areas, sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features Support Policy | HivePress

If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work

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