# Hide built-in listing booking fields

**URL:** <https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571>\
**Category:** Bookings\
**Tags:** bookings\
**Created:** [October 28, 2022, 10:30am UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571 "2022-10-28T10:30:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muslimbnb](https://community.hivepress.io/user_avatar/community.hivepress.io/muslimbnb/32/3235_2.png) [@muslimbnb](https://community.hivepress.io/u/muslimbnb)\
**Post date:** [October 28, 2022, 10:30am UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/1 "2022-10-28T10:30:52Z")

</div>

Hi, I’d like to remove some optional lines from the ad addition (screenshot attached)

 ![Capture d’écran (326)](https://community.hivepress.io/uploads/default/original/2X/c/ca0a238b5ee1486e48864f0e711a96da25b94da8.png)  
 ![Capture d’écran (325)](https://community.hivepress.io/uploads/default/original/2X/1/17a090d9a450003bbd073e3fb0a6e4190b39fbb9.png)

---

<div class="post-metadata">

**Author:** ![muslimbnb](https://community.hivepress.io/user_avatar/community.hivepress.io/muslimbnb/32/3235_2.png) [@muslimbnb](https://community.hivepress.io/u/muslimbnb)\
**Post date:** [October 30, 2022, 11:06pm UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/4 "2022-10-30T23:06:11Z")

</div>

@ihor @yevhen @serhii please can you reply my question i need to hide some lines in add liste page… thanks you very much

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [October 31, 2022, 9:18pm UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/7 "2022-10-31T21:18:32Z")

</div>

Sorry for the late reply. Please try this PHP snippet [Hide the booking offset and window fields in the listing form #hivepress #bookings · GitHub](https://gist.github.com/hivepress/0a241843c233a7bcb7ccf47e5b05d6d7)

Please let me know if it hides fields that you want to hide

---

<div class="post-metadata">

**Author:** ![muslimbnb](https://community.hivepress.io/user_avatar/community.hivepress.io/muslimbnb/32/3235_2.png) [@muslimbnb](https://community.hivepress.io/u/muslimbnb)\
**Post date:** [November 3, 2022, 11:56am UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/8 "2022-11-03T11:56:15Z")

</div>

@yevhen hi, the elements that I want hidden in the addition of the ad are: the tags, the reservation window, the maximum number of days of reservation, and the option to download an element (after extra and description) thank you

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [November 4, 2022, 1:17pm UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/10 "2022-11-04T13:17:08Z")

</div>

Please try this PHP snippet

```auto
add_filter(
	'hivepress/v1/forms/listing_update',
	function($form){
		
		// Hide tags field.
		unset($form['fields']['tags']);
		
		// Hide booking window field.
		unset($form['fields']['booking_window']);
		
		// Hide maximum booking duration field.
		unset($form['fields']['booking_max_length']);
		
		// Hide booking export url field.
		unset($form['fields']['booking_export_url']);
		return $form;
	},
	1000
);

```

It is possible to hide other fields in the listing update/submit forms with this code snippet just by changing field names. It is possible to check the built-in field name with the dev tools in your browser. If you are not familiar with the code customization then please consider hiring someone for custom work [https://fvrr.co/32e7LvY](https://fvrr.co/32e7LvY)

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [December 4, 2022, 1:17pm UTC](https://community.hivepress.io/t/hide-built-in-listing-booking-fields/2571/11 "2022-12-04T13:17:13Z")

</div>

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