Notifications
Clear all

New Feature Ask to confirm deletion of account

8 Posts
4 Users
4 Reactions
404 Views
Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

One of my members accidentally deleted his account. There should be some kind of confirmation with password or something before account is deleted. As it seems, it was just a click and it was gone. No way to restore it.

 

Edit: is there a way to remove this option for users?

 

Thanks

7 Replies
Posts: 15
(@essam)
Eminent Member
Joined: 1 year ago

same issue , 

can this delete option to be in user setting not in user profile , with confirmation by password and warning , also it should be after confirmation go to specifice page url that we put as page of goodby for example , because when user delted his account he will go to participants page "users list"

we need url page to put in page some asking info for why ?

 

if there are time untill completely delete to review his decide , will be great 

Reply
1 Reply
(@danniee)
Joined: 5 years ago

Honorable Member
Posts: 389

@essam yes, it is far too easy to delete your account by mistake and simply by being curious and maybe not being 100% fluent in English.

Reply
Posts: 91
(@jasontoth)
Estimable Member
Joined: 4 years ago

I just had a user do the same thing of deleting an account by mistake. Can we please add a "confirm to delete" versus just a single delete click? This would be a good upgrade on the system. Thank you, Jason

Reply
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

Use the hook code below to remove the option for users: 

add_filter( 'wpforo_can_user_self_delete', '__return_false' );

Here’s a helpful article on safely adding custom code in WordPress:  https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

Reply
3 Replies
(@danniee)
Joined: 5 years ago

Honorable Member
Posts: 389

@sofy thank you for this but can you please consider adding an option in settings to turn this off or at least add a warning for users before they actually delete the profile?

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@danniee,

I've already asked the developers to add this feature to our to-do list. It will be implemented in a future version of wpForo (no ETA at this time).

Reply
(@danniee)
Joined: 5 years ago

Honorable Member
Posts: 389

@sofy perfect!

Reply