Tagged Questions
0
votes
2answers
75 views
How to get the ID of the currently logged in user?
I want to get the ID of the currently logged in user. I've found the function:
get_current_user_id which seems to be working, however I'm not sure what 'current' means in this context.
Meaning if the ...
0
votes
1answer
143 views
How to add a custom activity to Buddypress?
In BuddyPress, I want to add a custom activity type called travel photos.
E.g so when you go to your profile, there's another link saying Travel photos. When you click it, it lets you post a new ...
2
votes
1answer
384 views
BuddyPress: hook to add new profile fields and groups
I am writing a plugin that adds additional profile group and some fields in it when activated. I am using basic $wpdb functions to insert new rows into bp_xprofile_groups and bp_xprofile_fields
So ...
0
votes
1answer
78 views
modify buddpress adminbar only in admin pages
I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar:
function bp_adminbar_currentsite_menu() {
global $bp;
?>
<li>
<!-- ...