Stop CoursPress Spam Registrations

We are getting a lot of spam registrations. I tried adding
Google Captcha (reCAPTCHA) by BestWebSoft and Stop Spammers Spam Control

The first doesn't seem to add reCaptcha to the Courspress Create Account page.
And the second simply didn't seem to stop registrations

Is there anything I can do to stop these registrations or force the create account to come after payment?

  • Sajid

    Hello Janna,
    Hope you are doing good today

    I am afraid, there is no captcha available at the moment to integrate with signup form.

    However, what you can do redirect users to default WordPress registration page, once logged in or registered then redirect back to course page.

    You can do this by using the following code.

    function wpmudev_register_login_cp(){
    	if( !is_user_logged_in() ){ 
    
    		$current_link = get_permalink();
    
    		$login_link = wp_login_url( $current_link );
    		?>
    
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$('.apply-button').removeClass('cp-custom-login').
    															attr('href', '<?php echo $login_link; ?>');
    
    		});
    	</script>
    	<?php }
    
    }
    
    add_action('wp_footer', 'wpmudev_register_login_cp', 99);

    But this way, they have to come back to coursepress page and enrol in the course to start learning.

    I am sorry but it is not technically possible to show registration form after payments. User must be logged in and registered to purchase a course.

    Take care and have a nice day

    Best Regards,
    Sajid - WPMU DEV Support