Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Store for checking if this page equals wp-login.php
- $page_viewed = basename( $_SERVER['REQUEST_URI'] );
- // permalink to the custom login page
- $login_page = get_permalink( 'CUSTOM_LOGIN_PAGE_ID' );
- if( $page_viewed == "wp-login.php" ) {
- wp_redirect( $login_page );
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement