WordPress设置强制跳转登录robinwu2022年3月7日wordpress 修改 每个主题的 header.php文件路径一般如下:./wordpress/wp-content/themes/blocksy/ <?php get_currentuserinfo(); global $user_ID; if ($user_ID == ”) { header(‘Location: /wp-login.php’); exit(); } ?>