How to delete listing attributes

What are the php snippets for deleting some of the listing attributes. (so we can have fewer when listing a property)

we need the php snippets for:

  1. Opening hours
  2. Tags
  3. Booking offset
  4. Booking window
  5. Minimum booking duration
  6. Maximum booking duration

Thanks in advance!

If you need to hide opening hours and tags fields please try to deactivate HivePress Opening Hours and HivePress Tags plugins

Please try this PHP snippet for booking fields

	function( $form ) {
		unset( $form['fields']['booking_offset'] );
		unset( $form['fields']['booking_window'] );
		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.