Hi, I noticed on the Member page (https://ednak.org/members/), there is a beautiful Create a Course button that displays in the top right part of the page. If an instructor is logged in, this button says "Create a Course" and if it is a student that is logged in, the button says "Become an Instructor".
Here's a screenshot of the page I'm talking about: http://prntscr.com/gb0w1j
I went to the Member page that is displaying this "Create a Course" button, but I cannot seem to find area in the admin that shows where this button is on the page.
The problem is that it is a little misplaced on the Members page. I want to create a new page specifically dedicated to Instructors. Sort of an Instructor Dashboard page and I want to display this big, beautiful Create a Course button on that page. Can you help me figure out how to move this Create a Course button to a different page?
Thanks!
ok, here's how you can achieve this :
1. Create your instructor dashboard page and copy the link : http://yoursite.com/page-for-instructors
2. add this code in child theme - functions.php
remove_action('wplms_be_instructor_button', array( $this, 'create_course_button' ),5);
add_action('wplms_be_instructor_button', function(){
if(current_user_can('edit_posts')){ //check for instructors
?>
<a href="http://yoursite.com/page-for-instructors" class="button create-group-button full">Instructor Dashboard</a>
<?php
}
});
p.s : Use FTP to make changes just in case there is some issue while copying of code.