WordPress 自定义注册登录移除 wp-login.php

Posted in:
Update time:2017-11-23

We offer WordPress Themes and Plugins Custom Development Services

This site has long undertaken WordPress themes, plugins, WooCommerce-based store mall development business. We have 10 years of experience in WordPress development, if you want to Developing Websites with WordPress, please contact WeChat: iwillhappy1314 or email: amos@wpcio.com for inquiries.

1 thoughts on “WordPress 自定义注册登录移除 wp-login.php

  1. 博主方法很赞,提供一种跟简单的方法

    // 登录保护 wp-login.php 
    function login_protection(){
        if($_GET['mimvp-blog'] != 'blog.mimvp.com') {
            wp_redirect(home_url());
        }   
    }
    add_action('login_enqueue_scripts','login_protection');

发表回复

Your email address will not be published. 必填项已用 * 标注

*