I would like to create a function to determine if a user is logged in or logged out. If the user is logged in I would like the navigation menu text to say "My Account" (this is what it currently displays because 'My Account' is the page name.) If the user is logged out, I would like the navigation menu text to read "Login".
This is my idea so far....
if (is_user_logged_in()) {
$my_account = "My Account";
return is_page($my_account);
} else {
$login = "Login/Sign Up";
return is_page($my_account) = "$login";
}