Created
March 31, 2022 19:28
-
-
Save asharirfan/64e166350879efffb63bda012374e147 to your computer and use it in GitHub Desktop.
Some useful WP CLI commands
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
# Add username to all subsites on a multisite as administrator | |
for site in $(wp site list --field=url); do wp user set-role myusername administrator --url=$site; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment