Skip to:
Content
Pages
Categories
Search
Top
Bottom
Codex HomeGetting StartedUser Submitted Guides → Change Default Members Profile Landing Tab

Change Default Members Profile Landing Tab

By default, BuddyPress will load the Activity tab when clicking on a member’s profile link. If you would like to change this default landing tab to something else than the Activity tab you can do so.

Constants such as this are best placed in files that load before BP is fully loaded. Add the code below to either wp-config.php or bp-custom.php (which you would create in your plugin folder as this file does not exist by default). file. When adding the code to wp-config.php, place it after define(‘DB_COLLATE’, ”); and before the authentication keys. If you add this line to the bottom of wp-config.php, it will not work.

/**
 * Change BuddyPress default Members landing tab.
 */
define('BP_DEFAULT_COMPONENT', 'profile' );

This example will load the ‘profile’ tab instead of the ‘activity’ screen it’s fairly easy and you can take any other option from the tabs-menu.

Skip to toolbar