[Plugin: BP Group Hierarchy] target subgroups slugs for redirection
-
Essentially I am using the BP Groups Extras plugin to create a new tab with slug “gpages” that is replacing the “home” group tab using an bp_init redirect action. This allows me to have custom home content for each group. The redirect function works like this:
if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) { if ($bp->groups->current_group->is_user_member) { bp_core_redirect( $path . 'gpages/' ); } }
Only it fails to redirect for subgroups. How can I modify it to work for subgroups as well. Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: BP Group Hierarchy] target subgroups slugs for redirection’ is closed to new replies.