Replies
Great! The error is gone after update. Thank you again!
Great! Thanks again. Everything is working how it should then.
I’ve attempted to create the code in functions.php for this, but users who I have whitelisted still have the report button on their profile, and their activities. Is this code correct?
function whitelist_users_from_moderation($is_super_admin, $user_id) { // Default whitelist all super admins $whitelist = $is_super_admin; $whitelisted_user_ids = array( 2, 95 ); if ( in_array( $user_id, $whitelisted_user_ids) ) { $whitelist = true; } return $whitelist; } add_filter('bpmts_is_user_whitelisted', 'whitelist_users_from_moderation', 10, 2);
As I have said before many times, I am smart and I notice things…
Sorry I didn’t see that. A filter is great.
Thanks gain for all the awesome support around here!
I don’t see a way to whitelist a user anywhere in the settings or on a users record. How do we do it?
I believe you are correct, and I am working on that now. Thanks for all the help!
- This reply was modified 5 years ago by Gregg Housh.
The only way I got rid of those php errors was to downgrade back to 1.2.3.
I downloaded the zip file from here: https://buddydev.com/plugins/buddypress-moderation-tools/
And I uploaded it with SFTP.
But looking at the source in that zip, it has the version issues.
Also, on the changelog it says you can whitelist users now. I can’t find that anywhere in the options. How do we whitelist?