Created
August 5, 2016 01:21
-
-
Save jennimckinnon/5a1131d5b8e31cf65b26fcda588369ec 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
add_filter('site_url', 'wplogin_filter', 10, 3); | |
function wplogin_filter( $url, $path, $orig_scheme ) | |
{ | |
$old = array( "/(wp-login\.php)/"); | |
$new = array( "myprivatelogin"); | |
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