Add description to booking note

Hi
How to create a personalized message in the reservation note?, for example, tell the user or client what to write in the reservation note

I need to tell the user to write in the reservation note the 5 mandatory requirements in order to approve their reservation

How can I do this? Or is there a code snippet to customize this?

Thanks.

Hi,

If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

I have the Rentalhive Theme, I already entered the license

Hi,

Please use this PHP snippet:

add_filter(
	'hivepress/v1/forms/booking_confirm',
	function( $form ) {
		if(isset($form['fields']['note'])){
		  $form['fields']['note']['description'] = 'test';
		}

		return $form;
	},
	1000
);

Thanks andrii, it worked perfectly, is it possible that the code snippet works only for a specific listing category?

Hi,

Unfortunately, there is no simple solution for this, it will require advanced customization.