How to Remove BuddyPress Links From the Navigation Bar in WPMU
- 1). Open a text or HTML editor and create a new blank file. Add the following code to the beginning of the document:
<?php
This opens the file as a PHP document and allows any functions you add to be read by the primary BuddyPress functions library. - 2). Move your cursor to the next line and enter the following:
define('BP_DISABLE_ADMIN_BAR', true);
This line of code tells BuddyPress to turn off the admin bar links. If the WordPress admin bar is enabled, this will only remove the BuddyPress menu items. - 3). Enter a new line and close your document by entering the end PHP tag:
?>
Save your document as "bp-custom.php" and upload it to your Web server under "wp-content/plugins." Refresh your BuddyPress page to review your changes.