Display maximum number of guests

Hey.

Id like to display the maximum number of guests, which a host can enter as " MAXIMUM GUESTS PER BOOKING". Is there an option to display it for example within the block (secondary)?

Best
Christoph

Please try this PHP snippet, but please note that it can require further customization. If you are not familiar with the code customization, then please consider hiring someone for custom work https://fvrr.co/32e7LvY

add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if ( isset( $attributes['booking_max_quantity'] ) ) {
			$attributes['booking_max_quantity']['display_format'] = '%label%: %value%';
			$attributes['booking_max_quantity']['display_areas']  = [
				'view_block_secondary',
			];
		}

		return $attributes;
	},
	1000
);

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