Weekly pricing by catagory

Hi, I have got this code and I’d like to know if it’s possible to make this code work only by specific categories. Can anyone help me with this?

Thanks in advance

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

		return $fields;
	},
	1000,
	2
);

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY