在主题文件的 functions.php(WP后台“外观”-“编辑”右侧可以找到)里加入如下代码:
//保护后台登录
add_action('login_enqueue_scripts','login_protection');
function login_protection(){
if($_GET['cs'] != '123')header('Location: https://ji.lockiele.com);
}
在主题文件的 functions.php(WP后台“外观”-“编辑”右侧可以找到)里加入如下代码:
//保护后台登录
add_action('login_enqueue_scripts','login_protection');
function login_protection(){
if($_GET['cs'] != '123')header('Location: https://ji.lockiele.com);
}
Wonderful goods from you, man. I have understand your stuff previous to
and you’re just extremely excellent. I actually like what you have acquired
here, certainly like what you’re saying and the way
in which you say it. You make it entertaining and you still take
care of to keep it wise. I can’t wait to read much more from you.