wp taxonomy <command>

Retrieves information about registered taxonomies.

See references for built-in taxonomies and custom taxonomies.

EXAMPLES EXAMPLES

# List all taxonomies with 'post' object type.
$ wp taxonomy list --object_type=post --fields=name,public
+-------------+--------+
| name        | public |
+-------------+--------+
| category    | 1      |
| post_tag    | 1      |
| post_format | 1      |
+-------------+--------+

# Get capabilities of 'post_tag' taxonomy.
$ wp taxonomy get post_tag --field=cap
{"manage_terms":"manage_categories","edit_terms":"manage_categories","delete_terms":"manage_categories","assign_terms":"edit_posts"}

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp taxonomy get

Gets details about a registered taxonomy.

wp taxonomy list

Lists registered taxonomies.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.