WooCommerce : Disable Automatic Login After Registration.

Code

WooCommerce : Disable Automatic Login After Registration.

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

Shiv kumawat

Executive Director & CEO

"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.”

Latest Posts

AI in Pet Care & Veterinary Apps – Smart Pet Wellness in 2026

  AI in Pet Care & Veterinary Apps – Smart Pet Wellness in 2026 The Pet Tech Revolution Pet ownership…

Shafeeq Khan
January 7, 2026

The Future of Sustainable AI Green Computing Trends Shaping 2026

  The Future of Sustainable AI Green Computing Trends Shaping 2026 AI’s Environmental Reckoning As AI adoption explodes in 2026,…

Shafeeq Khan
January 6, 2026

AI Agents in 2026 From Helpful Assistants to Autonomous Digital Co-workers

  AI Agents in 2026 From Helpful Assistants to Autonomous Digital Co-workers Artificial intelligence is entering a new phase in…

Shafeeq Khan
January 5, 2026
, ,

Leave a Reply

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