WordPress登录安全密匙

在主题文件的 functions.php(WP后台“外观”-“编辑”右侧可以找到)里加入如下代码:

//保护后台登录
add_action('login_enqueue_scripts','login_protection');
function login_protection(){
if($_GET['cs'] != '123')header('Location: https://ji.lockiele.com);
}


发表评论 0

Your email address will not be published. Required fields are marked *