3 years, 10 months ago
can someone please help me out with a code to add a link to friends tab subnav.
I have a page on my site named videos so i want to add a link to that video page, where it says: Friendships Requests.
Am using latest WordPress and Buddypress 1.7.1
And no theme ?
Am using Buddypress default theme (child theme)
Try this in plugins/bp-custom.php
@shanebp, you are beautifully good, I used the code in functions.php of my child theme and it works great.
Thanks for been a blessing to BP community.
3 years, 7 months ago
Thanks for your help on this topic, I just noticed that the link also visible while viewing the friends tab subnav of your friends.
How can I stop this, I want it to show on my profile alone and not while viewing my friends profile.
Note: i use the link on profile tab
@funmi-omoba, you can stop the problem by adding the following code in that subnav code
'user_has_access' => ( bp_is_my_profile() || is_super_admin() ),
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service