Redirect after signup

Using CoursePress signup in the following page:
/registracion-de-estudiante/

With the following shortcode:
[cp_pages page="student_signup"]

Once users signs up, it gets redirected to student dashboard page. Would like to redirect the users after signup to Course page instead, that's to:
/cursos/como-ser-un-influencer-exitoso-en-seis-pasos/

A quick workaround regarding this would be helpful. Please check the chat transcript for more info.

  • Adam Czajczyk
    • Support Gorilla

    Hello CK Fusion

    I hope you're well today and thank you for your question!

    If you direct users to a "registration page" directly then after registering they should see a choice of available courses. There's currently no redirect option for that and it would require custom coding, I'm afraid.

    I've asked our developers if there is any way to overcome this, e.g. with some additional code snippet, so please keep an eye on this ticket for further information.

    Please note: it might take them a bit longer to respond than it takes us usually, as they are dealing with a lot of complex stuff on daily basis. We'll update you here as soon as we get to know more from them.

    Kind regards,
    Adam

  • Panos
    • SLS

    Hey CK Fusion ,

    Instead of the :
    [cp_pages page="student_signup"]
    you can try using the [course_signup] which accepts a redirect_url attribute, eg :
    [course_signup redirect_url="http://site.test/courses/course-one/"]

    Alternatively, you can try adding the following snippet in a mu-plugin:

    add_filter( 'coursepress_redirect_after_signup_url', function(){
    	return "http://site.test/courses/course-one/";
    }, 20 );

    If you are not familiar with mu-plugins you can read more about them here :
    https://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Hope this helps!
    Kind regards!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.