Oct 30, 2024 2:50 pm
Hello,
Is there a way to be notified by email (administrator ou webmaster) or otherwise when a member delete its account?
We had nicknames: anonymous and messages that disappeared in foro.
Apparently he deleted its account (it took a long search to find it) in one click.
Thank you very much.
3 Replies
Oct 31, 2024 10:41 am
Hi
You can set [Hard delete] option to let users delete all their data as well:
The doc: https://wpforo.com/docs/wpforo-v2/settings/login-registration/#user-delete-method
If you want to remove the option for users to delete their accounts, use the hook code below:
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/