@haugejames
6 years, 9 months ago
Currently only admin are able to see private messages of the users. This is good, but is there a way to allow moderators this ability too?
The site is using bbpress and buddypress and a couple other small plugins to help with making the forum the way we want.
Thanks… James in Hawaii
@dcavins
Hi James, I guess it depends on what a moderator is. (I can only think of Group Mods in BP, not sure what would count as a site-wide moderator.)
The ability to see private messages is controlled by the check bp_current_user_can( 'bp_moderate' ) which is true for site or network admins.
bp_current_user_can( 'bp_moderate' )
You could probably filter that value for some other role, like editor, but it would be a bit complicated to make it work only for private messages. Here’s more information about working with the WP capabilities system: http://mannieschumpert.com/blog/wordpress-capabilities-magic-with-map_meta_cap/