Originally published at: Place All Sites on a GridPane Server into Maintenace Mode - Managing WP - All about Managing WordPress
Questions Is there a command to activate/deactivate all sites on a single server into maintenance mode? Something like gp all-sites wp maintenance-mode activate Solution There isn’t anything natively within GridPane’s CLI that will do this. However, this might help you. I created a function to list all sites on a server, excluding staging, canary and…