This works, in wp-config.php or bp-custom.php,
define( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );
I have added this in bp-custom.php but the code throws error on screen:
Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-includes/functions.php on line 6029
Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-admin/includes/misc.php on line 1252
Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-admin/admin-header.php on line 9
And when I have added it to wp-config. Now it shows members page as default but still not the forum (discussion) even the code says “forum”.
Any help is highly appreciated. Thanks
Sorry, I figure out the error was because of a space after the closing PHP tag. But with the error fixed the problem is same even in bp-custom.php file with this code the default tab changes to members, not the discussion. Any idea why? Thanks