How can i show security deposit on the listing page

I would like to show the security deposit on the listing page. So that a client can see the security deposit before paying.

If it is possible to add an explanation under the security deposit field?


Under security deposit

1 Like

Please try this PHP snippet but please note that it can require further customization

add_filter( 
	'hivepress/v1/models/listing/attributes', 
	function($attributes){
		if(isset($attributes['booking_deposit'])){
			$attributes['booking_deposit']['display_areas']  = [ 'view_page_primary' ];
			$attributes['booking_deposit']['edit_field']['description']  = 'Your custom text';
		}
		return $attributes;
	}, 
	1000 
);
1 Like

Thank you. it’s working now

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