喜用這個代替而不是你已經在前面的回答了。
1滴這在你的的Teme你的函數文件
add_filter('site_url', 'wplogin_filter', 10, 3);
function wplogin_filter($url, $path, $orig_scheme)
{
$old = array("/(wp-login\.php)/");
$new = array("account/"); //this can be change to login or whatever or may remain there
return preg_replace($old, $new, $url, 1);
2-重定向與的.htaccess:添加新規則剛RewriteBase後/在你的.htaccess的休閒區的這個---->重寫規則^帳戶$ wp-login.php
注意:請注意,帳戶字詞在您的函數代碼片段中,也在您的.htaccess中,並將在您的永久鏈接而不是wp-login.php中顯示。 所以您的網址會出現像這樣與上述用於寄存器/ lgin/lostpassword行動代碼:
www.yoursite.com/account/?action=註冊
www.yoursite.com/account/?action =登錄
www.yoursite.com/account/?action= lostpassword
希望它可以幫助和抱歉,我的英語我在法國更好;)