WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Login Redirect (3 posts)

  1. whitneyr
    Member
    Posted 1 year ago #

    FYI: I have done extensive research on this topic.

    I have a members only site running woo commerce.

    1. I would like users to be redirected to the home page (http://mydomain.com) after login and registration. Currently users are directed to their account page.

    The woocommerce site lists the following fix. However, I've had no luck with it.

    /*
     * goes in theme functions.php or a custom plugin
     *
     * By default login goes to my account
     **/
    add_filter('woocommerce_login_widget_redirect', 'custom_login_redirect');
    
    function custom_login_redirect( $redirect_to ) {
         $redirect_to = 'http://anypage.com';
    }

    2. Is there a way to moderate Registration. Meaning if a user registers, they are held in a queue until I can approve them.

    Thank you kindly.

    [ Please do not bump, that's not permitted here. ]

  2. Stevie D
    Member
    Posted 1 year ago #

    I'm also having the same problem the redirect woo recommends doesn't work for me!

    2. cant you just set that in the wp admin?

  3. whitneyr
    Member
    Posted 1 year ago #

    Check out this link.

Topic Closed

This topic has been closed to new replies.

About this Topic