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

AEO vs SEO vs GEO: a search bar above an AI answer panel that cites three web sources

llms.txt and AI Crawlers on WordPress: What to Allow in 2026

Many WordPress owners have heard they need an llms.txt file to show up in ChatGPT or Google’s AI answers. Others…

Shafeeq Khan
November 5, 2026
WhatsApp AI chatbot illustration: a phone chat and a larger chat window with bot replies and customer messages

AI Chatbot Development Cost in 2026: India vs US vs UK

Ask five vendors for a quote and the AI chatbot development cost can range from a few hundred dollars to…

Shafeeq Khan
November 4, 2026
AEO pricing illustration: cost charts and an AI search panel on an isometric navy platform

AEO Pricing in 2026: What AEO and GEO Services Cost

If you have asked two or three agencies for an AEO or GEO proposal, you have probably seen very different…

Shafeeq Khan
November 3, 2026
,

Leave a Reply

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