4 years, 8 months ago
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”.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service