Please use this snippet
/** * Redirect "wp-login.php" Page To Youzer Login Page. */ function yz_redirect_wplogin_to_youzer_login_page() { if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'logout' || $_GET['action'] == 'lostpassword' || $_GET['action'] == 'rp' || $_GET['action'] == 'bp-resend-activation' ) ) { return; } global $pagenow; if ( 'wp-login.php' == $pagenow && $_SERVER['REQUEST_METHOD'] == 'GET' ) { // Get Login Page Url. $login_url = 'add-your-custom-login-page-url-here'; // Redirect !! wp_redirect( $login_url ); exit(); } } add_action( 'init', 'yz_redirect_wplogin_to_youzer_login_page' );
PS:
- Change "add-your-custom-login-page-url-here" on the snippet with your Youzify Login Page slug.
- To know how to put the snippet, please check this article >> https://kainelabs.ticksy.com/article/17309/