Skip to:
Content
Pages
Categories
Search
Top
Bottom

Testing gpage exists before define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘gpages’ );


  • domisny
    Participant

    @domisny

    I would like to change the default page of my groups to the Pages tab.

    Using define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘gpages’ ); works fine if there is a gpages already created but it creates an error when there is none.

    I would like to add a test in bp-custom.ph to test whether of not to define the default BP_GROUPS_DEFAULT_EXTENSION to gpages to avoid the issue. How could I test the existence of the slug “gpages”.

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