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

**URL:** <https://community.hivepress.io/t/mandatory-profile-settings-booking-offset-booking-window-minimum-and-maximum-booking-duration/3313>\
**Category:** Bookings\
**Tags:** bookings\
**Created:** [December 8, 2022, 9:26pm UTC](https://community.hivepress.io/t/mandatory-profile-settings-booking-offset-booking-window-minimum-and-maximum-booking-duration/3313 "2022-12-08T21:26:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zipko](https://community.hivepress.io/letter_avatar_proxy/v4/letter/z/82dd89/32.png) [@Zipko](https://community.hivepress.io/u/Zipko)\
**Post date:** [December 8, 2022, 9:26pm UTC](https://community.hivepress.io/t/mandatory-profile-settings-booking-offset-booking-window-minimum-and-maximum-booking-duration/3313/1 "2022-12-08T21:26:11Z")

</div>

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)](https://community.hivepress.io/uploads/default/original/2X/0/0ad10c4fff6975065619308d241a6e95f2e80208.png)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [December 9, 2022, 1:39pm UTC](https://community.hivepress.io/t/mandatory-profile-settings-booking-offset-booking-window-minimum-and-maximum-booking-duration/3313/4 "2022-12-09T13:39:05Z")

</div>

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

```auto
add_filter(
	'hivepress/v1/forms/listing_update',
	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;
	},
	1000
);

```

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](https://hivepress.io/support-policy/)

If customizations are required for your site, please try customizing it using the collection of code snippets [Search · user:hivepress · GitHub](https://gist.github.com/search?q=user%3Ahivepress) and other developer resources, or 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:** [January 8, 2023, 1:39pm UTC](https://community.hivepress.io/t/mandatory-profile-settings-booking-offset-booking-window-minimum-and-maximum-booking-duration/3313/5 "2023-01-08T13:39:54Z")

</div>

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