Notifications
Clear all

[Solved] How to remove delete user icon

3 Posts
2 Users
1 Reactions
21 Views
Posts: 5
Topic starter
(@helge)
Active Member
Joined: 2 weeks ago

I would like to remove the delete user icon from the account window.


2 Replies
1 Reply
wpForo Support
Moderator
(@wpforo-support)
Joined: 3 months ago

Member
Posts: 39

@helge,
You can remove the delete user icon (Delete Own Account button) from the user profile in wpForo by adding this CSS code to the Custom CSS textarea in your forum settings:

#wpforo #wpforo-wrap .wpforo-profile .wpforo-user-tools span.wpf-ab-delete {display:none}

To add this CSS:

  • For Single Board Forum: Go to Dashboard > wpForo > Settings > Colors & Styles
  • For Multi-Boards Forum: Go to Dashboard > [Your Board Name] > Settings > Colors & Styles tab

Alternatively, you can disable the delete account button programmatically by adding this code to your child theme's functions.php file or using the Code Snippets plugin:

add_filter('wpforo_can_user_self_delete', '__return_false');

Posts: 5
Topic starter
(@helge)
Active Member
Joined: 2 weeks ago

Thanks. It worked perfect.