Groups
bp-groups.php
- groups_screen_my_groups
- groups_screen_group_invites
- groups_screen_group_home
- groups_screen_group_forum_topic
- groups_screen_group_forum
- groups_screen_group_members
- groups_screen_group_invite
- groups_screen_group_leave
- groups_screen_group_request_membership
- groups_screen_group_admin
- groups_screen_group_admin_edit_details
- groups_screen_group_admin_settings
- groups_screen_group_admin_manage_members
- groups_screen_group_admin_requests
- groups_screen_group_admin_delete_group
- groups_screen_notification_settings
- groups_promoted_member
- groups_demoted_member
- groups_banned_member
- groups_unbanned_member
- groups_format_activity
- groups_format_notifications
- groups_create_group_step1_save
- groups_create_group_step2_save
- groups_create_group_step3_save
- groups_created_group
- groups_delete_group
- groups_new_group_forum
- groups_new_forum_topic_post
- groups_new_forum_topic
- groups_invite_user
- groups_uninvite_user
- groups_accept_invite
- groups_reject_invite
- groups_send_invites
- groups_leave_group
- groups_join_group
- groups_new_wire_post
- groups_deleted_wire_post
- groups_details_updated
- groups_settings_updated
- groups_membership_requested
- groups_membership_accepted
- groups_membership_rejected
- groups_remove_data
bp-groups/bp-groups-templatetags.php
- groups_header_tabs
- groups_admin_tabs
- groups_creation_tabs
bp-groups/directories/bp-groups-directory-groups.php
- groups_directory_groups_sidebar
- groups_directory_groups_content
Accessing Group Info by ID
If you want to access the BuddyPress group info without calling an action or without going through an entire loop, you can use the following code:
$group = new BP_Groups_Group( $group_id );
In order to get the HTML code for the group avatar image using the Group ID, you can use the following code:
$avatar = bp_core_fetch_avatar( array( 'item_id' => $group_id, 'object' => 'group', 'type' => $type, 'avatar_dir' => 'group-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) );
$group_id is the variable you’ll need to pass in to get the avatar for that group. You can also change the type variable to ‘type’ => ‘thumb’ to get the thumbnail version of the avatar.