Descriptions for add detail fields

Cant find code snippet to add a description to the ‘maximum places per booking’ and ‘minimum places per booking’.

Could someone provide?

Thanks

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		
		// Add description for Maximum places per booking field.
		if(isset($form['fields']['booking_max_quantity'])){
		  $form['fields']['booking_max_quantity']['description'] = 'custom text here';
		}
		
		// Add description for Minimum places per booking field.
		if(isset($form['fields']['booking_min_quantity'])){
		  $form['fields']['booking_min_quantity']['description'] = 'custom text here';
		}

		return $form;
	},
	1000
);
1 Like

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