I also added bp_moderate
capability to the custom role but without success!
Any suggestion around this issue?
BP as such doesn’t have real role/caps abilities, bp_current_user_can() is a sort of faux work around so trying to add bp_moderate as a cap won’t work because BP doesn’t set true caps; ‘bp_mederate’ is just a check on something like the WP cap ‘manage_options’.
Recently I needed to add a custom user role for group creation so we could disable group creation for all but admins and a specific role I did that by filtering into bp_user_can_create_groups, running a function that got the current user role and returned ‘true’ on $can_create for that user role so you could do something similar for activity delete filtering into ‘bp_activity_user_can_delete’ returning ‘true’ on $can_delete.
I added a if condition that if the current user id is XXX then return true! It’s weird that, It doesn’t work either!