Ejemplo n.º 1
0
 static function get_all_terms()
 {
     if (!isset(Kanban_Terms::get_instance()->all_terms)) {
         // get all terms for displaying
         $args = array('hide_empty' => 0, 'orderby' => 'term_order');
         $all_terms = get_terms(Kanban::get_instance()->taxonomies_list, $args);
         Kanban_Terms::get_instance()->all_terms = Kanban_Utils::build_array_with_id_keys($all_terms, 'term_id');
     }
     return Kanban_Terms::get_instance()->all_terms;
 }