• Resolved Sahil Dadwal

    (@jack2020)


    Hey, your plugin conflict with tutor lms plugin. when i enabled your plugin then tutor lms’s instructor registration page not work.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    Thanks for using the plugin,

    I hope you are doing well, We have forwarded this to our technical team we will get back to you.

    Thanks & Regards

    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    Please paste this code into your child theme’s function.php file and let us know if the issue gets resolved or not.

    *
    * checking both tutor and nua are active.
     */
    $check_tutor_is_active = in_array('tutor/tutor.php',  get_option('active_plugins'));
    
    if( $check_tutor_is_active && class_exists('pw_new_user_approve') ) { 
    			
    	add_action('init', 'redirect_instruct_and_std_reg');		
    	function redirect_instruct_and_std_reg() {
    		
    		if (isset($_POST['tutor_register_student_btn']) || isset($_POST['tutor_register_instructor_btn'])) {
    				$obj = pw_new_user_approve::instance();
    				remove_filter('registration_errors', array($obj, 'show_user_pending_message'), 99);
    				
    		}
    	}	
    }

    Thanks

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    We are resolved this thread due to lack of activity if you have any questions please open a new thread.

    Thank you

    Thread Starter Sahil Dadwal

    (@jack2020)

    Your PHP code changes were rolled back due to an error on line 35 of file wp-content/themes/kadence/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘*’, expecting end of file
    Dismiss

    getting this error

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    We have to check this and we will keep you updated on this.

    Thank you

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    We have updated the Code, please check it and let me know if any issue occurs.

    //checking both tutor and nua are active.
     
    $check_tutor_is_active = in_array('tutor/tutor.php',  get_option('active_plugins'));
    
    if( $check_tutor_is_active && class_exists('pw_new_user_approve') ) { 
    			
    	add_action('init', 'redirect_instruct_and_std_reg');		
    	function redirect_instruct_and_std_reg() {
    		
    		if (isset($_POST['tutor_register_student_btn']) || isset($_POST['tutor_register_instructor_btn'])) {
    				$obj = pw_new_user_approve::instance();
    				remove_filter('registration_errors', array($obj, 'show_user_pending_message'), 99);
    				
    		}
    	}	
    }
    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @jack2020,

    We are resolving this thread due to lack of activity if you have any questions please open a new thread.

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘your plugin conflict with tutor lms’ is closed to new replies.