Notifications
Clear all

[Solved] Disable users being able to "delete all their comments"?

3 Posts
2 Users
0 Likes
976 Views
(@gutterboy)
Eminent Member
Joined: 6 years ago
Posts: 25
Topic starter  

Hello,

I'm just wondering if it's possible to disable the option for users to be able to "delete all their comments" - the option that shows up within the "My content and settings" window?

Thanks!


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

Hi @gutterboy,

There are few ways to do that:

1. You can hide the whole My Content and Settings" button. Just navigate to Dashboard > Comment > Settings > Comment Form admin page, and enable the "Hide My Content and Settings" option in the "Comment Form components" section.

More info: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-form/#components

2. You can also hide (via CSS) the delete button from the Activity tab. In this case, the users won't see the delete button and delete the comments. 

For registered users:

.wpd-delete-content.wpd-not-clicked {
display:none !important;
}

For guests: 

.wpd-user-settings-button-wrap:first-child {
display: none !important;
}

The whole activity tab can be hidden by using this CSS code:

.wpd-wrapper .wpd-list-item.wpd-active {
display: none !important;
}

All CSS codes should be added in the  Dashboard > Comments > Settings > Styling admin page  "Custom CSS  code" textarea.

Please don't forget to delete all caches and press CTRL+F5(twice) in the frontend before checking.


   
(@gutterboy)
Eminent Member
Joined: 6 years ago
Posts: 25
Topic starter  

Great - thanks very much!


   
Share:
Scroll to top