get('type-options'); if ($check) { $typeOptions = $check; } else { $terms = get_terms([ 'taxonomy' => BASE.'ntype', 'hide_empty' => false, ]); $typeOptions = []; if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { $typeOptions[] = [ 'id' => $term->term_id, 'name' => html_entity_decode($term->name), 'count' => $term->count, ]; } } $cache->set('type-options', $typeOptions); } ?>