src/class-extended-taxonomy.php
public function register_taxonomy() {

		if ( true === $this->args['query_var'] ) {
			$query_var = $this->taxonomy;
		} else {
			$query_var = $this->args['query_var'];
		}

		$post_types = get_post_types( [
			'query_var' => $query_var,
		] );

		if ( $query_var && count( $post_types ) ) {
			trigger_error( esc_html( sprintf(
				/* translators: %s: Taxonomy query variable name */
				__( 'Taxonomy query var "%s" clashes with a post type query var of the same name', 'extended-cpts' ),
				$query_var
			) ), E_USER_ERROR );
		} elseif ( in_array( $query_var, [ 'type', 'tab' ], true ) ) {
			trigger_error( esc_html( sprintf(
				/* translators: %s: Taxonomy query variable name */
				__( 'Taxonomy query var "%s" is not allowed', 'extended-cpts' ),
				$query_var
			) ), E_USER_ERROR );
		} else {
			register_taxonomy( $this->taxonomy, $this->object_type, $this->args );
		}

	}
public function register_taxonomy() {

		if ( true === $this->args['query_var'] ) {
			$query_var = $this->taxonomy;
		} else {
			$query_var = $this->args['query_var'];
		}

		$post_types = get_post_types( [
			'query_var' => $query_var,
		] );

		if ( $query_var && count( $post_types ) ) {
			trigger_error( esc_html( sprintf(
				/* translators: %s: Taxonomy query variable name */
				__( 'Taxonomy query var "%s" clashes with a post type query var of the same name', 'extended-cpts' ),
				$query_var
			) ), E_USER_ERROR );
		} elseif ( in_array( $query_var, [ 'type', 'tab' ], true ) ) {
			trigger_error( esc_html( sprintf(
				/* translators: %s: Taxonomy query variable name */
				__( 'Taxonomy query var "%s" is not allowed', 'extended-cpts' ),
				$query_var
			) ), E_USER_ERROR );
		} else {
			register_taxonomy( $this->taxonomy, $this->object_type, $this->args );
		}

	}
public function register_taxonomy ( ) { if ( true === $ this -> args [ 'query_var' ] ) { $ query_var = $ this -> taxonomy ; } else { $ query_var = $ this -> args [ 'query_var' ] ; } $ post_types = get_post_types ( [ 'query_var' => $ query_var , ] ) ; if ( $ query_var && count ( $ post_types ) ) { trigger_error ( esc_html ( sprintf ( /* translators: %s: Taxonomy query variable name */ __ ( 'Taxonomy query var "%s" clashes with a post type query var of the same name' , 'extended-cpts' ) , $ query_var ) ) , E_USER_ERROR ) ; } elseif ( in_array ( $ query_var , [ 'type' , 'tab' ] , true ) ) { trigger_error ( esc_html ( sprintf ( /* translators: %s: Taxonomy query variable name */ __ ( 'Taxonomy query var "%s" is not allowed' , 'extended-cpts' ) , $ query_var ) ) , E_USER_ERROR ) ; } else { register_taxonomy ( $ this -> taxonomy , $ this -> object_type , $ this -> args ) ; } }
Registers our taxonomy.

@return null
Registers our taxonomy .