Removing Instructors profile link from name in Course page

0. Install the WPLMS Customizer plugin.

1. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
2. Add following code in the _construct function:

PHP Code:


3. Add following code in the class :

PHP Code:


By adding this : !current_user_can(‘edit_posts’) in the if condition, the link is removed only for students and not for Instructors or admins.

Was this article helpful?

Related Articles