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
);