Last active
July 10, 2017 04:36
-
-
Save davemac/23642a4762e055c26a1ebe27415a3178 to your computer and use it in GitHub Desktop.
Wordpress : bash function, uses wp-cli to generate posts using https://baconipsum.com/json-api/
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
# Example use: bipsum 4 pages | |
bipsum(){ | |
curl "https://baconipsum.com/api/?type=meat-and-filler¶s=5&format=html" | wp post generate --post_type=$2 --count=$1 --post_content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment