Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author natekinkead

    (@natekinkead)

    Joan,

    I just released a new version that includes this feature for you.

    This function in your child theme’s functions.php file will let you choose which forum IDs are allowed to have voting…

    add_filter( 'bbp_voting_allowed_on_forum', 'allowed_voting_forums', 10, 2 );
    function allowed_voting_forums( $allowed, $forum_id ) {
        if( in_array( $forum_id, array(123, 124, 125) ) ) {
            $allowed = true;
        } else {
            $allowed = false;
        }
        return $allowed;
    }
    Thread Starter Joan Boluda

    (@boluda)

    Awesome!!! Thanks Nate!! ??

    Plugin Author natekinkead

    (@natekinkead)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activate for certain forums’ is closed to new replies.