Kirki_Helper::get_terms PHP Метод

get_terms() публичный статический Метод

Get an array of terms from a taxonomy
public static get_terms ( string | array $taxonomies ) : array
$taxonomies string | array See https://developer.wordpress.org/reference/functions/get_terms/ for details.
Результат array
        public static function get_terms($taxonomies)
        {
            $items = array();
            // Get the post types.
            $terms = get_terms($taxonomies);
            // Build the array.
            foreach ($terms as $term) {
                $items[$term->term_id] = $term->name;
            }
            return $items;
        }