Prevent user from deleting their activity
Is there any way of preventing users (other than admin) from deleting their own activity eg. I don’t want them to be able to delete entries such as “User x updated their profile”.
I’ve successfully prevented commenting on certain activities using bp_activity_can_comment and I’m thinking maybe I can use bp_activity_user_can_delete in a similar way, but can’t seem to make that work.
Any suggestions would be gratefully received.
With many thanks in advance.
PS. I know I can hide “Delete” with CSS but would really prefer to use a filter instead.
- You must be logged in to reply to this topic.