运营一个网站,免不了要进行维护,比如更新网站功能,更换主题等等,我们通常不希望用户看到网站维护的工作过程,这时候,我们就需要临时开启维护模式。倡萌此前也介绍过一些工具和方法:
今天再介绍一个简单的插件 Maintenance Switch,它可以实现后台一件开启和关闭维护模式,支持排除用户角色、IP,支持自定义维护提示信息等。演示效果如下:

后台设置界面:

你可以在后台插件安装界面直接搜索 Maintenance Switch 直接安装,也可以在这里下载 Maintenance Switch。
来源:
https://www.wpdaxue.com/maintenance-switch.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_33671.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57