When the user visits the page /my-account but is signed out, I need to move it to the page /login. I've got half of it at the moment (if it's signed out) but I need to check if it's the my account / page I can't figure out. Please help
if ( !is_user_logged_in()) {
wp_redirect( '/login' );
die();
}