• Resolved tamdoankc

    (@tamdoankc)


    If I’m logged out and go to …/my-courses/ page it uses the default Sensei login form. However, I have Woocommerce setup which is a different login form …/my-account/. The login via Woocommerce works as expected, however, the Sensei login will send a verification email everytime (from “WordPress”).

    Is there anyway to permanently change the Sensei login view to display the Woocommerce login instead?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jay

    (@bluejay77)

    Hi @tamdoankc,

    Redirecting login pages can be done via custom development, which is outside the scope of support. That said, we can point you in the right direction if you are comfortable with doing some custom development without our support.
    ?
    You may consider redirecting users from My Courses page to a custom login page using the following snippet:

    add_action(
    	'wp',
    	function() {
    		if (
    			is_page()
    			&& Sensei()->settings->get( 'my_course_page' ) === get_the_ID()
    			&& ! is_user_logged_in()
    		) {
    			wp_safe_redirect( '/my-custom-login-url' );
    			exit;
    		}
    	}
    );

    ?
    Or, if you prefer to use the Sensei login in My Courses page, you can also do a different customization by tweaking the code above, checking your other login pages, and sending them to the My Courses page.
    ?
    If you’d rather not use filters, you may be able to find a third-party solution that creates login forms. We cannot endorse any third-party plugins, however, since we have not tested them.?
    ?
    Also, we currently have a feature request for customizing login pages: https://github.com/Automattic/sensei/issues/2720
    ?
    Feel free to add your use case there, if you would like. Our developers regularly review feature requests like this to plan new features for future releases.

    I hope that helps!?

    Thread Starter tamdoankc

    (@tamdoankc)

    I can’t seem to get the code snippet to run. Can you provide a bit of guidance?

    Hi @tamdoankc

    I’m afraid your request is outside our scope of support as mentioned by my colleague Jay, so we will be unable to assist with modifying or debugging custom code. If customizations are very important to you and you’re unable to implement it yourself, you might want to consider hiring freelancers.

    Best,
    Alba

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login using Woocommerce instead of wordpress’ is closed to new replies.