• Hello, thanks for your useful plugin.

    I have a problem with the login redirect. I´ve tried with:

    ——

    function yikes_custom_login_redirect_after_login() {
    	// Redirect users to the homepage after successful login
    	return home_url();
    }
    add_filter( 'custom-wp-login-login-redirect-url', 'yikes_custom_login_redirect_after_login' );

    ——-

    But the user is redirect to the woocommerce my account page.

    Thanks in advance,
    Fernando

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ferjsz,

    You are close! The actual hook you will want to use is the following:

    add_filter('yikes-custom-login-login-redirect-url', 'yikes_custom_login_redirect_after_login');

    Let me know if that helps,
    Jon

    Thread Starter ferjsz

    (@ferjsz)

    Hi @jpowersdev,

    thanks for your answer.

    I´ve changed the filter with ‘yikes-custom-login-login-redirect-url’, but the problem remains the same, the page after login is woocommerce my account page.

    Any idea?

    Best regards,
    Fer

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirect on login problem’ is closed to new replies.