diff --git a/wp-content/plugins/matthew-lms-mvp/matthew-lms-mvp.php b/wp-content/plugins/matthew-lms-mvp/matthew-lms-mvp.php index 896d1e2..fc2a0b2 100644 --- a/wp-content/plugins/matthew-lms-mvp/matthew-lms-mvp.php +++ b/wp-content/plugins/matthew-lms-mvp/matthew-lms-mvp.php @@ -137,9 +137,12 @@ function matthew_lms_mvp_render_header(): string { $links = [ 'Home' => matthew_lms_mvp_public_url(), 'WAX Coach' => matthew_lms_mvp_public_url('career-coach/'), - 'Profile' => matthew_lms_mvp_member_access_url('platform/'), - 'Course' => matthew_lms_mvp_member_access_url('platform/course/'), ]; + + if (is_user_logged_in()) { + $links['Profile'] = matthew_lms_mvp_public_url('platform/'); + $links['Course'] = matthew_lms_mvp_public_url('platform/course/'); + } $login_url = add_query_arg('redirect_to', rawurlencode(matthew_lms_mvp_public_url('platform/')), matthew_lms_mvp_public_url('log-in/')); ob_start(); ?>