From a72e1e340823325d72755de55ceffcd9937c909e Mon Sep 17 00:00:00 2001
From: Varun Dubey <vapvarun@gmail.com>
Date: Tue, 27 Feb 2018 15:44:07 +0530
Subject: [PATCH] added home tab

---
 src/bp-core/bp-core-functions.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/bp-core/bp-core-functions.php b/src/bp-core/bp-core-functions.php
index ddef982dd..651efcb2b 100644
--- a/src/bp-core/bp-core-functions.php
+++ b/src/bp-core/bp-core-functions.php
@@ -2553,6 +2553,18 @@ function bp_nav_menu_get_loggedin_pages() {
 	// Pull up a list of items registered in BP's primary nav for the member.
 	$bp_menu_items = buddypress()->members->nav->get_primary();
 
+	$bp_pages    = bp_core_get_directory_pages();
+	$member_slug = $bp_pages->members->slug;
+	$name        = bp_get_loggedin_user_username();
+
+	$_bp_menu_items[] = array(
+		'name' => __( 'Home', 'buddypress' ),
+		'slug' => 'home',
+		'link' => site_url() . "/$member_slug/$name/front/",
+	);
+
+	$bp_menu_items = array_merge( $_bp_menu_items, $bp_menu_items );
+
 	// Some BP nav menu items will not be represented in bp_nav, because
 	// they are not real BP components. We add them manually here.
 	$bp_menu_items[] = array(
-- 
2.14.3 (Apple Git-98)

