Hide note in booking request page

Hello,

When requesting a booking, before payment, the customer can fill in a note: it is then very easy to communicate this information to the supplier. How can I hide this field?

Hi,

If I understand you correctly, please use this PHP snippet (How to add custom code snippets - HivePress Help Center):

1 Like

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

Hi the following php snippet will hide notes on booking requests.

add_filter(
	'hivepress/v1/forms/booking_update',
	function ( $form ) {
		unset($form['fields']['note']);

		return $form;
	},
	1000
);
1 Like

Thank you for the solution! This will be very helpful for our community.

Hello! Is it possible to completely remove the “Note (optional)” section that appears in the booking request, as shown in the screenshot below? This is the area users see when submitting a booking request. Please let me know if this can be removed. Thank you!

Hi,

Please find the solution in this topic.