How to hide min and max booking duration

i tried hiding the optional listings options using the code bellow but it only did hide the first two options and i dont know how to hide the maximum and minimum booking period option can you please help me :

<?php add_filter( 'hivepress/v1/forms/listing_update', function( $form ) { unset( $form['fields']['booking_offset'] ); unset( $form['fields']['booking_window'] ); unset( $form['fields']['booking_duration_minimum'] ); unset( $form['fields']['booking_duration_maximum'] ); return $form; }, 1000 );


Please use this PHP snippet:

	function( $form ) {
		unset( $form['fields']['booking_min_length'] );
		unset( $form['fields']['booking_max_length'] );

		return $form;
1 Like

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