• Resolved adnanmahmud

    (@adnanmahmud)


    I would like to moderate the customer even after payment. Once a user checkout using their info they automatically logged in. I want to moderate user signup.

    I am using this plugin “New User Approve” but still no luck.

    I want the user to log out after the registration and send them an email that their membership is pending upon admin approval.

    Any idea how can I achieve that?

    PS: I’ve tried this:
    https://stackoverflow.com/a/24486913/11549335

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

Viewing 1 replies (of 1 total)
  • Michael K

    (@mikkamp)

    Automattic Happiness Engineer

    Hi there,

    There is a filter available to prevent automatic login after they registered during checkout. This can be done with the filter woocommerce_registration_auth_new_customer

    So you would use something like:

    add_filter( 'woocommerce_registration_auth_new_customer', '__return_false' );

    However to have a new user approved before they can login is functionality that would need to be added by a plugin. Since WooCommerce creates a regular WordPress user you can use a plugin which handles this for normal WordPress users.

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent automatic login when register in woocommerce’ is closed to new replies.