public function taxonomy( $args, $assoc_args ) {
		$defaults = array(
			'textdomain' => '',
			'post_types' => "'post'",
		);

		if ( isset( $assoc_args['post_types'] ) ) {
			$assoc_args['post_types'] = $this->quote_comma_list_elements( $assoc_args['post_types'] );
		}

		$templates = array(
			'taxonomy.mustache',
			'taxonomy_extended.mustache',
		);

		$this->scaffold( $args[0], $assoc_args, $defaults, '/taxonomies/', $templates );
	}
public function taxonomy( $args, $assoc_args ) {
		$defaults = array(
			'textdomain' => '',
			'post_types' => "'post'",
		);

		if ( isset( $assoc_args['post_types'] ) ) {
			$assoc_args['post_types'] = $this->quote_comma_list_elements( $assoc_args['post_types'] );
		}

		$templates = array(
			'taxonomy.mustache',
			'taxonomy_extended.mustache',
		);

		$this->scaffold( $args[0], $assoc_args, $defaults, '/taxonomies/', $templates );
	}
public function taxonomy ( $ args , $ assoc_args ) { $ defaults = array ( 'textdomain' => '' , 'post_types' => "'post'" , ) ; if ( isset ( $ assoc_args [ 'post_types' ] ) ) { $ assoc_args [ 'post_types' ] = $ this -> quote_comma_list_elements ( $ assoc_args [ 'post_types' ] ) ; } $ templates = array ( 'taxonomy.mustache' , 'taxonomy_extended.mustache' , ) ; $ this -> scaffold ( $ args [ 0 ] , $ assoc_args , $ defaults , '/taxonomies/' , $ templates ) ; }
Generates PHP code for registering a custom taxonomy.

## OPTIONS

<slug>
: The internal name of the taxonomy.

[--post_types=<post-types>]
: Post types to register for use with the taxonomy.

[--label=<label>]
: The text used to translate the update messages.

[--textdomain=<textdomain>]
: The textdomain to use for the labels.

[--theme]
: Create a file in the active theme directory, instead of sending to
STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.

[--plugin=<plugin>]
: Create a file in the given plugin's directory, instead of sending to STDOUT.

[--raw]
: Just generate the `register_taxonomy()` call and nothing else.

[--force]
: Overwrite files that already exist.

## EXAMPLES

# Generate PHP code for registering a custom taxonomy and save in a file
$ wp scaffold taxonomy venue --post_types=event,presentation > taxonomy.php

@subcommand taxonomy

@alias      tax
Generates PHP code for registering a custom taxonomy .