Skip to:
Content
Pages
Categories
Search
Top
Bottom

define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ ); and “home” if no forum


  • sasasasaaa
    Participant

    @sasasasaaa

    Hello,

    I use define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ ); to show forum nav-item as default in single group.

    I also have groups without forums where I need the home nav-item.

    How can I do that?

    I tried this in functions.php:
    if( bp_group_is_forum_enabled() )
    define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
    }
    It is not working.

    I am searching for hours and have very little php knowledge.

    May anybody has a solution for this?

    Thanks a lot.

  • You must be logged in to reply to this topic.
Skip to toolbar