-
AuthorPosts
-
November 21, 2014 at 2:26 am #149704
Hi,
I would like to add a logout button on the buddypress navigation under activity, groups, profile. I thought adding this code to framework/functions/global/plugins/buddypress.php on line 504 would do it, however the logout function executes everytime I load any page. So the user never stays logged in for more than 1 minute. Is there another way to make it work?
Thanks
if ( is_user_logged_in() ) {
$submenu_items .= ‘<li class=”menu-item menu-item-buddypress-navigation”><i class=”x-icon x-icon-cog”></i> <span>Log out</span>‘;
}November 21, 2014 at 3:27 pm #150181Hi Gatera,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
November 22, 2014 at 4:05 am #150375Hi,
I am currently still working on localhost, I haven’t bought a domain yet.
November 23, 2014 at 1:32 am #150798Hey Gatera,
We’d love to help you with your concern however, BuddyPress modification is beyond the scope of our support. You might want to install a plugin like https://wordpress.org/plugins/baw-login-logout-menu/
Thanks.
-
AuthorPosts