lib/Taxonomy.php
public static function register( $taxonomies = [] ) {
		foreach ( $taxonomies as $taxonomy => $args ) {
			$args = self::parse_args( $args );
			self::register_extensions( $taxonomy, $args );

			$for_post_types = $args['for_post_types'];

			// Defaults for taxonomy registration.
			$args = wp_parse_args( $args['args'], [
				'public'            => false,
				'hierarchical'      => false,
				'show_ui'           => true,
				'show_admin_column' => true,
				'show_tag_cloud'    => false,
			] );

			register_taxonomy( $taxonomy, $for_post_types, $args );
		}
	}
public static function register( $taxonomies = [] ) {
		foreach ( $taxonomies as $taxonomy => $args ) {
			$args = self::parse_args( $args );
			self::register_extensions( $taxonomy, $args );

			$for_post_types = $args['for_post_types'];

			// Defaults for taxonomy registration.
			$args = wp_parse_args( $args['args'], [
				'public'            => false,
				'hierarchical'      => false,
				'show_ui'           => true,
				'show_admin_column' => true,
				'show_tag_cloud'    => false,
			] );

			register_taxonomy( $taxonomy, $for_post_types, $args );
		}
	}
public static function register ( $ taxonomies = [ ] ) { foreach ( $ taxonomies as $ taxonomy => $ args ) { $ args = self :: parse_args ( $ args ) ; self :: register_extensions ( $ taxonomy , $ args ) ; $ for_post_types = $ args [ 'for_post_types' ] ; // Defaults for taxonomy registration. $ args = wp_parse_args ( $ args [ 'args' ] , [ 'public' => false , 'hierarchical' => false , 'show_ui' => true , 'show_admin_column' => true , 'show_tag_cloud' => false , ] ) ; register_taxonomy ( $ taxonomy , $ for_post_types , $ args ) ; } }
Register taxonomies based on an array definition.

@param array $taxonomies {
An array of arrays for taxonomies, where the name of the taxonomy is the key of an array.

@type string $name_singular  Singular name for taxonomy.
@type string $name_plural    Plural name for taxonomy.
@type array  $for_post_types The array of post types you want to register the taxonomy for.
@type array  $args           Arguments that get passed to taxonomy registration.
}
Register taxonomies based on an array definition .