Skip to content

Instantly share code, notes, and snippets.

Created Nov 22, 2017
What would you like to do?
Create a user account for each role on your WordPress site
# wp-cli:
wp role list --fields=role --format=csv \
| tail -n +2 \
| xargs -I {} wp user create "user-{}" "{}" --role={}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment