Example #1
0
 function wpdreams_get_all_term_ids()
 {
     $taxonomies = wpdreams_get_all_taxonomies();
     $terms = array();
     foreach ($taxonomies as $taxonomy) {
         $_temp = get_terms($taxonomy, 'orderby=name');
         foreach ($_temp as $k => $v) {
             $terms[] = $v->term_id;
         }
     }
     return $terms;
 }
Example #2
0
 function wpdreams_get_all_term_ids()
 {
     $taxonomies = wpdreams_get_all_taxonomies();
     $terms = array();
     foreach ($taxonomies as $taxonomy) {
         $_temp = get_terms($taxonomy, 'orderby=name');
         // If term count is too hight, it needs to break
         $_term_count = 0;
         foreach ($_temp as $k => $v) {
             if ($_term_count > 200) {
                 break;
             }
             $terms[] = $v->term_id;
             $_term_count++;
         }
     }
     return $terms;
 }