如果你需要一个私密的wordpress站点, 那么可以在在主题下设置必须登录
如果未登录, 那么强行跳转到登录界面, 再关闭注册, 你的站点就仅可以自己使用啦
把下面的代码, 放在 head.php, 或者是functions.php等页面中均可以.
// Require login for site
get_currentuserinfo();
global $user_ID;
if ($user_ID == '') {
header('Location: /wp-login.php'); exit();
}
