packages/kirki-framework/core/src/Helper.php
public static function get_taxonomies() {
		$items = [];

		// Get the taxonomies.
		$taxonomies = get_taxonomies(
			[
				'public' => true,
			]
		);

		// Build the array.
		foreach ( $taxonomies as $taxonomy ) {
			$id           = $taxonomy;
			$taxonomy     = get_taxonomy( $taxonomy );
			$items[ $id ] = $taxonomy->labels->name;
		}

		return $items;
	}
public static function get_taxonomies() {
		$items = [];

		// Get the taxonomies.
		$taxonomies = get_taxonomies(
			[
				'public' => true,
			]
		);

		// Build the array.
		foreach ( $taxonomies as $taxonomy ) {
			$id           = $taxonomy;
			$taxonomy     = get_taxonomy( $taxonomy );
			$items[ $id ] = $taxonomy->labels->name;
		}

		return $items;
	}
public static function get_taxonomies ( ) { $ items = [ ] ; // Get the taxonomies. $ taxonomies = get_taxonomies ( [ 'public' => true , ] ) ; // Build the array. foreach ( $ taxonomies as $ taxonomy ) { $ id = $ taxonomy ; $ taxonomy = get_taxonomy ( $ taxonomy ) ; $ items [ $ id ] = $ taxonomy -> labels -> name ; } return $ items ; }
Get an array of publicly-querable taxonomies.

@static
@access public
@return array
Get an array of publicly - querable taxonomies .