Created
December 14, 2021 00:26
-
-
Save psorensen/9bd47b7a937db32d60ad7c88f14f09fd to your computer and use it in GitHub Desktop.
WP-CLI: Update a field based on query.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp post update --post_excerpt='A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring' $(wp post list --post_type=page --format=ids) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment