wp taxonomy

Manage taxonomies.

GitHub Issues

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"}

SUBCOMMANDS

Name Description
wp taxonomy get

Get details about a registered taxonomy.

wp taxonomy list

List 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.