Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Add Logout Confirmation Popup
This code will force a confirmation popup to show when users click the Logout link on the account.
The popup message can be modified by changing the message text "Are you sure you want to log out?" on this line:
if(!confirm('Are you sure you want to log out?')) {
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments