MyFrenchLife™ – MaVieFrançaise®

MyFrenchLife™ – MaVieFrançaise®

Share this post

MyFrenchLife™ – MaVieFrançaise®
MyFrenchLife™ – MaVieFrançaise®
Logout of WordPress without confirmation

Logout of WordPress without confirmation

Judy MacMahon—Fondatrice's avatar
Judy MacMahon—Fondatrice
Sep 14, 2023
∙ Paid

Share this post

MyFrenchLife™ – MaVieFrançaise®
MyFrenchLife™ – MaVieFrançaise®
Logout of WordPress without confirmation
Share

When you go to logout of WordPress admin or front end (eg a customer/user), you are prompted to confirm to logout.

Logout of WordPress without confirmation

However, sometimes this isn’t desirable. To get around this, you need to add the following code to the functions.php file of your WordPress site.

Note: you need to change https://yourdomain.com to the URL of the page in your website that you …

Keep reading with a 7-day free trial

Subscribe to MyFrenchLife™ – MaVieFrançaise® to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Judith MacMahon
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share