Created
March 20, 2016 21:38
-
-
Save eduard-un/e240cb7724dcef85b80e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| add_filter('site_url', 'wplogin_filter', 10, 3); | |
| function wplogin_filter( $url, $path, $orig_scheme ) { | |
| $old = array( "/(wp-login\.php)/"); | |
| $new = array( "login"); | |
| return preg_replace( $old, $new, $url, 1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment