• I am trying to log a user out right after registration on the “my-account” page.

    The reason I want this is because I have wholesale pricing enabled on my site. I have hidden the prices with a filter to only show to logged in users.
    And therefore I set the default of new user to be a “pending” user.

    User status is set to “pending” with “new user approve” plugin, however after registration they are still logged in until they log out.

    I need a way to check after registration, or when they want to load the “shop” page to see their status and if its “pending” to log them out.

    https://wordpress.org/plugins/woocommerce/

The topic ‘Logging user out right after registration’ is closed to new replies.