Ability to hide duration of Appointment
In some cases the duration of an appointable service is not clear or the durations varies e.g. between 1 or 2h. Similar to the function "has price label" it would be great to be able to show a label instead of a fixed duration.
So the user would be able to enter a duration and add a label which will be shown instead of the duration. The number entered in duration should be used for e.g the calendar than.
Comments (3)
-
reporter -
Open a Pull request and I'll review the code.
Otherwise, there is already a filter for hiding the duration label and since the there is already a label for price, it would be better to stick with that. I'll look into this and see how it could be simplified or even be dealt with like the pricing, so when extra duration is availble, label would automatically transform into i.e. "From 2 hours".
-
- changed status to resolved
Possible with a filter:
add_filter( 'woocommerce_return_duration_html', '__return_false' );
- Log in to comment
I just developed this feature. How can I push this into a branch?