protected function taxonomy_exists( $taxonomy ) {

		$taxonomy_names = get_object_taxonomies( $this->get_object_type() );

		if ( ! in_array( $taxonomy, $taxonomy_names, true ) ) {
			WP_CLI::error( "Invalid taxonomy {$taxonomy}." );
		}
	}
protected function taxonomy_exists( $taxonomy ) {

		$taxonomy_names = get_object_taxonomies( $this->get_object_type() );

		if ( ! in_array( $taxonomy, $taxonomy_names, true ) ) {
			WP_CLI::error( "Invalid taxonomy {$taxonomy}." );
		}
	}
protected function taxonomy_exists ( $ taxonomy ) { $ taxonomy_names = get_object_taxonomies ( $ this -> get_object_type ( ) ) ; if ( ! in_array ( $ taxonomy , $ taxonomy_names , true ) ) { WP_CLI :: error ( "Invalid taxonomy {$taxonomy}." ) ; } }
Check if taxonomy exists

@param $taxonomy
Check if taxonomy exists