# Solution for setting default Booking Slot Duration no longer working

**URL:** <https://community.hivepress.io/t/solution-for-setting-default-booking-slot-duration-no-longer-working/8371>\
**Category:** Bookings\
**Tags:** bookings\
**Created:** [November 22, 2023, 8:06pm UTC](https://community.hivepress.io/t/solution-for-setting-default-booking-slot-duration-no-longer-working/8371 "2023-11-22T20:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnennis](https://community.hivepress.io/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@johnennis](https://community.hivepress.io/u/johnennis)\
**Post date:** [November 22, 2023, 8:06pm UTC](https://community.hivepress.io/t/solution-for-setting-default-booking-slot-duration-no-longer-working/8371/1 "2023-11-22T20:06:31Z")

</div>

I’m currently trying to set a default Booking Slot Duration; however, the solution provided here no longer seems to work: [How can I set a default value for a listing attribute and hide it from listing creation](https://community.hivepress.io/t/how-can-i-set-a-default-value-for-a-listing-attribute-and-hide-it-from-listing-creation/1411)

I have my settings set so the majority of booking features are on the vendor profile; however Booking Slot Duration is still connected to the listing, so I am not sure why the code you linked would not work.

---

<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:** [November 23, 2023, 9:40am UTC](https://community.hivepress.io/t/solution-for-setting-default-booking-slot-duration-no-longer-working/8371/3 "2023-11-23T09:40:34Z")

</div>

Hi,

Please make sure you add this PHP snippet using this doc: [How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets). Also, please note that after adding this snippet, it will be applied only to new listings.

​I hope this is helpful to you.

---

<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 23, 2023, 9:41am UTC](https://community.hivepress.io/t/solution-for-setting-default-booking-slot-duration-no-longer-working/8371/4 "2023-12-23T09:41:25Z")

</div>

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