Hello,
Right now I have it showing per day, but i want it to show per minute. I read somewhere that i should add this code below, but it doesnt say WHERE to add the code to fix this problem.
Can someone please tell me how to insert this code and where on the wordpress dashboard to put it?
Thanks
Here is the code
add_filter(
'hivepress/v1/models/listing/fields',
function( $fields, $listing ) {
if (hivepress()->get_version( 'bookings' ) && hivepress()->booking->is_time_enabled( $listing->get_id()) && isset( $fields['price'] ) ) {
$fields['price']['display_template'] = '%value% / min';
}
return $fields;
},
1000,
2
);