Last active
July 2, 2022 16:44
-
-
Save taylorgorman/23595770d5d824e40fa72fba44664f1a to your computer and use it in GitHub Desktop.
WP-CLI commands to aid in local development
This file contains 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
# Create placeholder users with each role for testing | |
# Assumes your user is administrator | |
# Should go without saying, but: These passwords are obviously insecure. This is only intended for local development. | |
# | |
wp user create editor me+editor@taylorpatrickgorman.com --user_pass=editor --role=editor --first_name=Editor --last_name=User | |
wp user create author me+author@taylorpatrickgorman.com --user_pass=author --role=author --first_name=Author --last_name=User | |
wp user create contributor me+contributor@taylorpatrickgorman.com --user_pass=contributor --role=contributor --first_name=Contributor --last_name=User | |
wp user create subscriber me+subscriber@taylorpatrickgorman.com --user_pass=subscriber --role=subscriber --first_name=Subscriber --last_name=User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment