@funmi-omoba
11 years, 6 months ago
Hi,
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
thanks
@chouf1
And no theme ?
sorry @chouf1,
Am using Buddypress default theme (child theme)
Polite Bump
@shanebp
Try this in plugins/bp-custom.php
https://gist.github.com/shanebp/5561044
@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.
Regards
11 years, 3 months ago
@shanebp,
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
Best regards
@naijaping
@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() ),
Naijaping