MemberPress: Update Account Course Tab Link With User-Role-Based Custom URLs
function mepr_account_nav_courses_link($link) { if (current_user_can(‘administrator’)) { // Set the user-role-based condition return ‘/admin-courses/’; // If the user matches the user-role-based condition, apply this URL } else { return ‘/user-courses/’; // If the user DOESN’T match the user-role-based condition, apply this…Continue reading