User registration with Learndash LMS

Home Forums User Registration User registration with Learndash LMS

This topic contains 1 reply, has 2 voices, and was last updated by  sanjeev3 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1283

    Helen Butt
    Participant

    Hi

    I have set up a registration form and login page page successfully on my online training website. They both work fine when I click on the login button in the menu.

    I am using the Learndash LMS to create my online courses. The problem with registration/login happens when I click on the ‘start course’ button when I am not logged in. The button redirects me to a standard WordPress login page not the login page I have created. The ‘start course’ button is generated dynamically and I can see no way to specify the action for this button.

    Are there any settings I should be altering with the User Registration plugin which will stop the WordPress login page from being the default page?

    In other words is there a setting I should activate to make the Login page I have created with the User Registration short code the default login page?

    Any help you can give me would be greatly appreciated as I am finding your plugin very easy to use otherwise.

    Thanks,
    Helen

    #1290

    sanjeev3
    Member

    Hello Helen,

    It all depends on what action the ‘start course’ button has, which might be generated by Learndash LMS. We don’t have settings for this. However if you are familiar, you can modify login_url hook to redirect to your custom page:

    add_filter( 'login_url', 'ur_login_page' );
    function ur_login_page() {
        wp_redirect ( home_url( '/custom-login-page/' ) );  
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.