Re: Akismet 4 link limit in posts or whitelist
I ran into a similar problem. Specifically, I created a new Role called ‘Superuser’ that has capabilities between Member and Moderator. I don’t want these users ever to be spam-filtered.
I solved this by replacing this function in /bb-includes/functions.php:
function bb_trusted_roles() {
return apply_filters( 'bb_trusted_roles', array('moderator', 'administrator', 'keymaster') );
}
with this:
function bb_trusted_roles() {
return apply_filters( 'bb_trusted_roles', array('moderator', 'administrator', 'keymaster', 'Superuser') );
}
This works, but I hate hacking the core. Is there a way to do this with a plugin? I tried and tried, but I couldn’t figure out how to array_push a new Role on that array. Can somebody help me, perhaps with their superior understanding of how add_filter works?
Thanks!
-Bob