Blogger Information
Blog 5
fans 0
comment 2
visits 6198
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
wordpress后台地址修改
神沐的博客
Original
888 people have browsed it
add_action('login_enqueue_scripts','login_protection');  
function login_protection(){  
        if($_GET['wenti'] != 'answer'){
        wp_redirect(get_bloginfo('url'));
    }  
}

把这段代码加到主题文件下的functions.php,登录后台的时候路径就变为 http://192.168.2.37/wp-login.php?wenti=answer

地址如果输入错误就跳转到首页

1538014537(1).jpg

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post