Created
March 21, 2018 18:10
-
-
Save jerrickhakim/4c0358aaf286e2bbb4a8425af1ea66fe to your computer and use it in GitHub Desktop.
WordPress Login URL Redirect
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
function jh_from_wp_login() { | |
$login_url = '/login'; | |
wp_redirect( esc_url_raw( $login_url ) ); exit; | |
} | |
add_action( 'login_form_login', 'jh_from_wp_login' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment