From 3ce5b7ce28e4e921b3ef9878aa58dedd92d2deea Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 8 Jun 2026 09:10:23 +0000 Subject: [PATCH] 7 --- wp-content/plugins/matthew-lms-mvp/matthew-lms-mvp.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); ?>