Need help updating a function for BP1.3
- 
		The following function works well in functions.php for a BP1.2.7 theme I’m developing, but I need a bit of help updating it for BP1.3 
 The function redirects users to “Group > Forums” as the “landing page” in groups instead of “Group > Home”.`function redirect_to_forum() { 
 global $bp;
 $path = clean_url( $_SERVER );
 $path = apply_filters( ‘bp_uri’, $path );
 if ( bp_is_group_home() && strpos( $path, $bp->bp_options_nav ) === false )
 bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
 }
 add_action( ‘wp’, ‘redirect_to_forum’ );`From what I’ve read on this page, slugs need to be changed, but I’m not sure how to do it. 
 http://bpdevel.wordpress.com/2011/01/18/component-slug-vs-root_slug-in-bp-1-3/I’ve got trunk(3727) installed on a test site and most things are working well (aside from a few glitches with the adminbar and forums). Can anyone clue me in on how to update this function? 
- The topic ‘Need help updating a function for BP1.3’ is closed to new replies.
