Wp term update (WP-CLI)
Naar navigatie springen
Naar zoeken springen
$ wp help term update NAME wp term update DESCRIPTION Updates an existing term. SYNOPSIS wp term update <taxonomy> <term> [--by=<field>] [--name=<name>] [--slug=<slug>] [--description=<description>] [--parent=<term-id>] OPTIONS <taxonomy> Taxonomy of the term to update. <term> ID or slug for the term to update. [--by=<field>] Explicitly handle the term value as a slug or id. --- default: id options: - slug - id --- [--name=<name>] A new name for the term. [--slug=<slug>] A new slug for the term. [--description=<description>] A new description for the term. [--parent=<term-id>] A new parent for the term. EXAMPLES # Change category with id 15 to use the name "Apple" $ wp term update category 15 --name=Apple Success: Term updated. # Change category with slug apple to use the name "Apple" $ wp term update category apple --by=slug --name=Apple Success: Term updated.