[ 'customer' => __( 'Patients', 'timetics' ), 'staff' => __( 'Doctors', 'timetics' ), ], 'education' => [ 'customer' => __( 'Students', 'timetics' ), 'staff' => __( 'Teachers', 'timetics' ), ], ]; $busyness = apply_filters( 'timetics_busyness', $busyness ); $selected = ! empty( $busyness[$category] ) ? $busyness[$category] : ''; return $selected; } } if ( ! function_exists( 'timetics_get_busyness_categories' ) ) { /** * Get busyness categories * * @return array */ function timetics_get_busyness_categories() { $busyness_categories = [ [ 'id' => 'doctor', 'name' => __( 'Doctors/Health clinic', 'timetics' ), ], [ 'id' => 'education', 'name' => __( 'Tutor and education center', 'timetics' ), ], [ 'id' => 'others', 'name' => __( 'Others', 'timetics' ), ], ]; return apply_filters( 'timetics_busyness_categories', $busyness_categories ); } } if ( ! function_exists( 'timetics_get_busyness_category' ) ) { /** * Get busyness categories * * @return array */ function timetics_get_busyness_category() { return timetics_get_option( 'busyness_category' ); } }