Wp taxonomy list (WP-CLI)
Naar navigatie springen
Naar zoeken springen
$ wp help taxonomy list NAME wp taxonomy list DESCRIPTION Lists registered taxonomies. SYNOPSIS wp taxonomy list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] OPTIONS [--<field>=<value>] Filter by one or more fields (see get_taxonomies() first parameter for a list of available fields). [--field=<field>] Prints the value of a single field for each taxonomy. [--fields=<fields>] Limit the output to specific taxonomy fields. [--format=<format>] Render output in a particular format. --- default: table options: - table - csv - json - count - yaml --- AVAILABLE FIELDS These fields will be displayed by default for each term: * name * label * description * object_type * show_tagcloud * hierarchical * public These fields are optionally available: * count EXAMPLES # List all taxonomies. # $ wp taxonomy list --format=csv name,label,description,object_type,show_tagcloud,hierarchical,public category,Categories,,post,1,1,1 post_tag,Tags,,post,1,,1 nav_menu,"Navigation Menus",,nav_menu_item,,, link_category,"Link Categories",,link,1,, post_format,Format,,post,,,1 # 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 | +-------------+--------+