Redirect Back to course Button to a custom page

This tip will help in redirecting a user to a custom page when user clicks on back to course button on course status page

a. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_Class.php
b. Add the following line in function _contstruct :

PHP Code:
add_action('wplms_course_start_after_timeline',array($this,'redirect_back_to_course_button'),999);

c. Add the following function in class :

PHP Code:
 function redirect_back_to_course_button(){
 	if(is_user_logged_in()){
 		global $current_user;
		$login_page='your-site-url/members/'. $current_user->user_login.'/course/';
 		echo '';
 	}

 }

Was this article helpful?

Related Articles

1 Comment

  1. Sindhu

    Hi,
    Not able to modify customizer_Class.php or wplms-customizer.php file from Admin panel.
    Getting error
    http://prntscr.com/m66slo

    Please let me know the FTP file locations of the above.

Leave A Comment?