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

			if ( isset( $args['args'] ) ) {
				add_filter( 'register_taxonomy_args', function( $defaults, $name ) use ( $taxonomy, $args ) {
					if ( $taxonomy !== $name ) {
						return $defaults;
					}

					$args = wp_parse_args( $args['args'], $defaults );

					return $args;
				}, 10, 2 );
			}
		}
	}
public static function update( $taxonomies = [] ) {
		foreach ( $taxonomies as $taxonomy => $args ) {
			$args = self::parse_args( $args );
			self::register_extensions( $taxonomy, $args );

			if ( isset( $args['args'] ) ) {
				add_filter( 'register_taxonomy_args', function( $defaults, $name ) use ( $taxonomy, $args ) {
					if ( $taxonomy !== $name ) {
						return $defaults;
					}

					$args = wp_parse_args( $args['args'], $defaults );

					return $args;
				}, 10, 2 );
			}
		}
	}
public static function update ( $ taxonomies = [ ] ) { foreach ( $ taxonomies as $ taxonomy => $ args ) { $ args = self :: parse_args ( $ args ) ; self :: register_extensions ( $ taxonomy , $ args ) ; if ( isset ( $ args [ 'args' ] ) ) { add_filter ( 'register_taxonomy_args' , function ( $ defaults , $ name ) use ( $ taxonomy , $ args ) { if ( $ taxonomy !== $ name ) { return $ defaults ; } $ args = wp_parse_args ( $ args [ 'args' ] , $ defaults ) ; return $ args ; } , 10 , 2 ) ; } } }
Updates settings for a taxonomy.

Here, you use the same settings that you also use for the `register()` funciton.

Run this function before the `init` hook.

@see register_taxonomy()
@since 2.2.0

@param array $taxonomies An associative array of post types and its arguments that should be updated. See the
`register()` function for all the arguments that you can use.
Updates settings for a taxonomy .