Last active
December 17, 2015 19:58
-
-
Save weishai/5663870 to your computer and use it in GitHub Desktop.
修改wordpress默认登录地址
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* 修改wordpress默认登录地址 */ | |
function wb_redir_login() { | |
wp_redirect(home_url('/').'/login'); //这个地址可以随意修改 | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment