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

Home services app development cost in Australia 2026: Eoxys banner with a tradeswoman in a hard hat holding a plumber's wrench

Home Services App Development Cost in Australia (2026)

A home services job in Australia is only finished when the right tradie turns up in the booked window, holds…

Shafeeq Khan
November 26, 2026
Colour photograph illustrating the Eoxys blog post 'AI Agent Evaluation: How to Test an Agent Before Launch', used as the featured image for ai agent evaluation.

AI Agent Evaluation: How to Test an Agent Before Launch

An AI agent that works in a demo can still fail in production: it picks the wrong tool, loops, or…

Shafeeq Khan
November 26, 2026
Grocery delivery app development cost in Saudi Arabia 2026: Eoxys banner with a grocery bag of fresh produce on a doorstep

Grocery Delivery App Development Cost in Saudi Arabia (2026)

A grocery order in Saudi Arabia is only done when the basket that reaches the door matches what the customer…

Shafeeq Khan
November 25, 2026
,

Leave a Reply

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