How can i change the price of a property from x/day to x/week

How can i change the price of a property from x/day to x/week

Hi, use this code snippet:

add_filter(
	'hivepress/v1/models/listing/fields',
	function( $fields, $model ) {
		if ( isset( $fields['price'] ) ) {
			$fields['price']['display_template'] = '%value% / week';
		}

		return $fields;
	},
	1000,
	2
);
1 Like

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