2017-08-24 82 views

回答

0

您可以重定向到其他網站的登錄頁面是這樣的:

//add this in functions.php 
function redirect_login_page(){ 

    // Store for checking if this page equals wp-login.php 
    $page_viewed = basename($_SERVER['REQUEST_URI']); 

    // permalink to the custom login page 
    $login_page = "http://other-site.com/login-page-url" 

    if($page_viewed == "wp-login.php") { 
     wp_redirect($login_page); 
     exit(); 
    } 
} 

add_action('init','redirect_login_page'); 

和最佳的運氣設置的cookie,然後在這個網站與該cookie登錄! :)