Skip to content

Instantly share code, notes, and snippets.

@johnbillion johnbillion/roles.sh

Created Nov 22, 2017
Embed
What would you like to do?
Create a user account for each role on your WordPress site
# wp-cli: http://wp-cli.org/
wp role list --fields=role --format=csv \
| tail -n +2 \
| xargs -I {} wp user create "user-{}" "{}@example.com" --role={}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.