1. Redirect wp-admin and wp-login.php to any page. In the example below, it redirects to /my-account page
//redirect wp-admin wp-login.php
function custom_login_url(){
global $pagenow;
if( 'wp-login.php' == $pagenow && !is_user_logged_in()) {
wp_redirect('/my-account');
exit;
}
}
add_action('init','custom_login_url');