Example #1
0
 function update_7_3()
 {
     add_option('ab_appearance_text_info_third_step_guest', '');
     $staff_members = AB_Staff::query('s')->select('s.id, s.full_name')->fetchArray();
     foreach ($staff_members as $staff) {
         do_action('wpml_register_single_string', 'bookly', 'staff_' . $staff['id'], $staff['full_name']);
     }
     $categories = AB_Category::query('c')->select('c.id, c.name')->fetchArray();
     foreach ($categories as $category) {
         do_action('wpml_register_single_string', 'bookly', 'category_' . $category['id'], $category['name']);
     }
     $services = AB_Service::query('s')->select('s.id, s.title')->fetchArray();
     foreach ($services as $service) {
         do_action('wpml_register_single_string', 'bookly', 'service_' . $service['id'], $service['title']);
     }
 }
 /**
  * @return mixed
  */
 private function getCategoryCollection()
 {
     return AB_Category::query()->sortBy('position')->fetchArray();
 }