Setting site to unavailable and checking if site is active via WP CLI or PHP
-
Hi,
Is there an easy way in core WP functionality (wp-admin gui) to disable an entire site? Display a maintenance page to prevent all users/admins logging in. I spotted a plugin called “maintenance-mode” but wanted to avoid plugins as it would have to be installed on multiple sites.
This would be useful for preventing any content updates while the site is being updated or for longer term archiving of a site.
It’s a little confusing in WP as there is the ability to archive a site that is part of a multi-site installation but not for a single site…
Also, is there a way in the WP CLI or via PHP to check if a site is active? So as mentioned in the line above you can set a site within a multi-site installation to be archived or deactivated – does this add a setting somewhere that can be checked?
Many Thanks,
P26.
- You must be logged in to reply to this topic.