wp scaffold taxonomy <slug>

Generates PHP code for registering a custom taxonomy

Arguments

NameDescription
slugThe internal name of taxonomy

Options

NameDescription
--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
--themeCreate 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
--rawJust generate the register_taxonomy() call and nothing else
--forceOverwrite files that already exist