WooCommerce : Disable Automatic Login After Registration.

Code

When we enable customer registration on My Account page, We will know that when new user is register it’s automatically logged in .
it need to change when we need to manually approve each user.
In that case we have to stop this Programmatically.
we can simply use 'woocommerce_registration_auth_new_customer' filter for that.

add_filter( 'woocommerce_registration_auth_new_customer', '__return_false' );

Enjoy

Related reading:

Shiv Kumawat

Executive Director & CEO

Shiv Kumawat is the CEO of Eoxys IT Solution LLP, the Jaipur-based IT company he has led since 2009. An AI & IT Solutions Consultant with 16+ years of experience, he works with startups and enterprises to turn ideas into market-ready SaaS platforms, mobile apps and AI-driven solutions. His team has delivered 700+ projects across SaaS, mobile and web apps, automation and AI. He previously served as Chief Technology Officer for a US company.

Latest Posts

Eoxys banner for a post-quantum cryptography business guide, showing a close-up of a gold-pin computer processor on a dark blue background

Post-Quantum Cryptography in 2027: A Business Migration Guide

Post-quantum cryptography (PQC) went from a 2030 planning topic to this week’s security headline. On 2 December 2026 the NSA,…

Shafeeq Khan
December 4, 2026
Eoxys banner: Restaurant Ordering App Development Cost in the USA, 2027 guide, with a guest waiting under a Pick Up Here sign in a restaurant

Restaurant Ordering App Development Cost in the USA (2027)

A restaurant ordering app is judged at the pickup shelf. If the app promises 15 minutes and the kitchen needs…

Shafeeq Khan
December 4, 2026
Colour photograph illustrating the Eoxys blog post 'Author Pages and E-E-A-T for AI Search: A Practical Guide', used as the featured image for author pages eeat ai search.

Author Pages and E-E-A-T for AI Search: A Practical Guide

AI search tools prefer sources they can trust, and so do people. Google’s guidance asks content creators to make clear…

Shafeeq Khan
December 4, 2026
,

Leave a Reply

Your email address will not be published. Required fields are marked *