How to set booking slot interval to 0 and remove it as an option in the "list a property page"

When I click on “list a property”, there is an option to choose the “booking slot interval”. How do I remove this option from the “list a property” page and make it 0 for all future listings?

Please keep in mind that I have the following:

  • RentalHive
  • Hivepress Version 1.6.16
  • Hivepress Blocks Version 1.0.0
  • Hivepress Bookings Version 1.4.11
  • Hivepress Favourites Version 1.2.2
  • Hivepress Geolocation Version 1.3.7
  • Hivepress Marketplace Version 1.3.7
  • Hivepress Messages Version 1.3.0
  • Hivepress Reviews Version 1.3.0
  • Hivepress Social Login Version 1.0.1

Hi,
Please try this PHP snippet:

add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		
		if ( isset($attributes['booking_slot_interval']) ) {
			$attributes['booking_slot_interval']['editable'] = false;
		}

		return $attributes;
	},
1000
);

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