Skip to content

Commit

Permalink
Update term commands examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Feb 13, 2024
1 parent 2b5d5d5 commit 9c0ed62
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Term_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,10 @@ public function recount( $args ) {
*
* # Migrate a category's term (video) to tag taxonomy.
* $ wp term migrate 9190 --from=category --to=post_tag
* Term '9190' migrated!
* Old instance of term '9190' removed from its original taxonomy.
* Success: Migrated the term '9190' from taxonomy 'category' to taxonomy 'post_tag' for 1 posts
* Term 'video' assigned to post 1155.
* Term 'video' migrated.
* Old instance of term 'video' removed from its original taxonomy.
* Success: Migrated the term 'video' from taxonomy 'category' to taxonomy 'post_tag' for 1 post.
*/
public function migrate( $args, $assoc_args ) {
$term_reference = $args[0];
Expand Down

0 comments on commit 9c0ed62

Please sign in to comment.