Restrict Anonymous Posting to Specific Topics
-
Hello. I’d like to allow anonymous posting, but disable it in specific forums. Here’s what I have so far:
function specific_anonymous_bbp() {
if (is_post('XXX')) {
return apply_filters( 'bbp_allow_anonymous', 0)
}
}
add_action( 'plugins_loaded' , 'specific_anonymous_bbp' );I’ve tried about a thousand different combinations (the above being the latest) with no luck. I found the bbp_allow_anonymous hook looking through the core files, but I’m not sure how to disallow it for specific posts. I also tried making form-anonymous.php conditional based on post ID, which worked, but caused other issues. Any ideas?
- You must be logged in to reply to this topic.