Option to show/hide staff additional price

Issue #203 resolved
Valentina R created an issue

Comments (1)

  1. Željan Topić

    Customers can utilize this filter:

    apply_filters( 'woocommerce_appointments_staff_additional_cost_string', $additional_cost_string, $staff_member )
    

    To hide for all staff members, they can simply return false:

    add_filter( 'woocommerce_appointments_staff_additional_cost_string', 'hide_staff_additional_cost_string', 10, 2 );
    function hide_staff_additional_cost_string( $additional_cost_string, $staff_member ) {
      return false;
    }
    
  2. Log in to comment