• I see no commands referencing adding a meta description to a post in the documentation for wp-cli.

    Does anyone have an example snippet for working with a major plugin like Yoast or Rank Math?

    Ideally, I would be able to add it to a new post, but if the post has to exist, then I can code around that too.

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    Yoast stores the meta description in a meta field on the object named “_yoast_wpseo_metadesc”. You can also set this via WP CLI. Have a look at

    wp post meta update

    • This reply was modified 3 years, 7 months ago by threadi.
Viewing 1 replies (of 1 total)

The topic ‘WP CLI Adding meta description’ is closed to new replies.