Slide 12
Slide 12 text
List blogs, and their URLs in a multisite
❯ blogs=$(wp site list --fields="site_id,
blog_id,url" --format="csv")
for entry in $blogs
do
site_id=$(echo $entry |cut -d ',' -f1 )
blog_id=$(echo $entry |cut -d ',' -f2 )
blog_url=$(echo $entry |cut -d ',' -f3 )
echo "$blog_id: $blog_url in $site_id"
done