Raj Samani (@rsamani61)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • Raj Samani
    Participant

    @rsamani61

    It’s working perfectly for me. Actually, i want the user to redirect to /members/member_name/forums/ after submitting a new topic so here are my changes.

    function rew_forum_redirect_topic ($redirect_url, $redirect_to, $topic_id ){
    $forum_id = bbp_get_topic_forum_id($topic_id);
    $redirect_url = bp_loggedin_user_domain() . ‘forums/’ ;
    return $redirect_url ;
    }

    add_filter( ‘bbp_new_topic_redirect_to’, ‘rew_forum_redirect_topic’ , 10 ,3 ) ;

Viewing 1 replies (of 1 total)