Contents
bp_is_group()
Does the current page belong to a single group?
Description
Will return true for any subpage of a single group.
Return
(bool) True if the current page is part of a single group.
Source
File: bp-core/bp-core-template.php
function bp_is_group() { $retval = bp_is_active( 'groups' ); if ( ! empty( $retval ) ) { $retval = bp_is_groups_component() && groups_get_current_group(); } return (bool) $retval; }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-groups/bp-groups-functions.php: groups_get_current_group() |
Get the BP_Groups_Group object corresponding to the current group. |
bp-core/bp-core-template.php: bp_is_groups_component() |
Check whether the current page is part of the Groups component. |
bp-core/bp-core-template.php: bp_is_active() |
Check whether a given component (or feature of a component) is active. |
Used By | Description |
---|---|
bp-templates/bp-nouveau/includes/ajax.php: bp_nouveau_ajax_save_cover_position() |
Save Cover image position for group and member. |
bp-document/bp-document-template.php: bp_has_folders() |
Initialize the folder loop. |
bp-document/bp-document-functions.php: bp_document_default_scope() |
Get default scope for the document. |
bp-document/bp-document-functions.php: bp_document_folder_bradcrumb() |
This function will give the breadcrumbs html. |
bp-templates/bp-nouveau/includes/activity/template-tags.php: bp_nouveau_activity_privacy() |
Output the privacy option inside an Activity Loop. |
bp-media/bp-media-functions.php: bp_media_query_privacy() |
Get list of privacy based on user and group. |
bp-groups/bp-groups-functions.php: bp_groups_prime_mentions_results() |
Mentions results for groups. |
bp-groups/bp-groups-filters.php: bp_groups_filter_document_scope() |
Set up document arguments for use with the ‘groups’ scope. |
bp-groups/bp-groups-filters.php: bp_groups_filter_folder_scope() | |
bp-groups/bp-groups-activity.php: bp_groups_get_activity_group() |
Get the group object the activity belongs to. |
bp-core/bp-core-template.php: bp_is_single_folder() |
Is the current page a single folder item permalink? |
bp-core/bp-core-template.php: bp_is_single_document() |
Is the current page a single document item permalink? |
bp-forums/groups.php: BBP_Forums_Group_Extension::form_permissions() |
Permissions to view the ‘New Topic’/’Reply To’ form in a BuddyBoss group. |
bp-forums/groups.php: BBP_Forums_Group_Extension::new_topic_redirect_to() |
Redirect to the group forum screen |
bp-forums/groups.php: BBP_Forums_Group_Extension::new_reply_redirect_to() |
Redirect to the group forum screen |
bp-forums/groups.php: BBP_Forums_Group_Extension::maybe_unset_forum_menu() |
Maybe unset the group forum nav item if group does not have a forum |
bp-forums/classes/class-bp-forums-component.php: BP_Forums_Component::setup_components() |
Instantiate classes for BuddyBoss integration |
bp-forums/common/template.php: bbp_get_the_content() |
Return a textarea or TinyMCE if enabled |
bp-forums/functions.php: bbp_group_is_admin() |
Is the current user an admin of the current group |
bp-forums/functions.php: bbp_group_is_mod() |
Is the current user a moderator of the current group |
bp-forums/functions.php: bbp_group_is_member() |
Is the current user a member of the current group |
bp-forums/functions.php: bbp_group_is_banned() |
Is the current user banned from the current group |
bp-forums/functions.php: bbp_group_is_creator() |
Is the current user the creator of the current group |
bp-media/bp-media-template.php: bp_has_albums() |
Initialize the album loop. |
bp-media/bp-media-template.php: bp_has_media() |
Initialize the media loop. |
bp-groups/bp-groups-adminbar.php: bp_groups_group_admin_menu() |
Add the Group Admin top-level menu when viewing group pages. |
bp-groups/bp-groups-adminbar.php: bp_groups_remove_edit_page_menu() |
Remove rogue WP core Edit menu when viewing a single group. |
bp-groups/actions/access.php: bp_groups_group_access_protection() |
Protect access to single groups. |
bp-groups/classes/class-bp-group-extension.php: BP_Group_Extension::setup_display_hooks() |
Hook this extension’s group tab into BuddyPress, if necessary. |
bp-groups/classes/class-bp-group-extension.php: BP_Group_Extension::setup_edit_hooks() |
Hook this extension’s Edit panel into BuddyPress, if necessary. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::late_includes() |
Late includes method. |
bp-groups/bp-groups-template.php: bp_groups_activity_feed() |
Hook group activity feed to . |
bp-friends/bp-friends-functions.php: bp_friends_prime_mentions_results() |
Used by the Activity component’s @mentions to print a JSON list of the current user’s friends. |
bp-integrations/learndash/buddypress/Core.php: Core::registerGroupComponent() |
Register BP group extension components based on settings |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_post_update() |
Processes Activity updates received via a POST request. |
bp-templates/bp-nouveau/includes/activity/functions.php: bp_nouveau_activity_localize_scripts() |
Localize the strings needed for the Activity Post form UI |
bp-templates/bp-nouveau/includes/media/functions.php: bp_nouveau_media_localize_scripts() |
Localize the strings needed for the messages UI |
bp-templates/bp-nouveau/includes/groups/template-tags.php: bp_nouveau_group_type_checked() |
Output “checked” attribute to determine if the group type should be checked. |
bp-templates/bp-nouveau/includes/groups/template-tags.php: bp_nouveau_get_group_meta() |
Get the group meta. |
bp-templates/bp-nouveau/includes/groups/template-tags.php: bp_nouveau_group_meta() |
Display the group meta. |
bp-templates/bp-nouveau/includes/groups/ajax.php: bp_nouveau_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_group_setup_nav() |
Setup group invite navigation menu item. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_customizer_link() |
Get a link to reach a specific section into the customizer |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_current_object() |
Get the current component or action. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_single_item_subnav_classes() |
Returns the single item subnav container classes. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_search_primary_object() |
Get the search primary object |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_container_classes() |
Returns the main BuddyPress container classes. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_has_nav() |
Init the Navigation Loop and check it has items. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_after_loop() |
Template tag to wrap the after component loop |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_pagination() |
Pagination for loops |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_loop_classes() |
Get the component’s loop classes |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_before_loop() |
Template tag to wrap the before component loop |
bp-templates/bp-nouveau/includes/functions.php: bp_nouveau_get_component_filters() |
Get Dropdawn filters for the current component of the one passed in params |
bp-core/bp-core-template.php: bp_get_the_post_class() |
Customizes the post CSS class according to BuddyPress content. |
bp-core/bp-core-template.php: bp_get_the_body_class() |
Customize the body class, according to the currently displayed BP content. |
bp-core/bp-core-template.php: bp_is_single_album() |
Is the current page a single album item permalink? |
bp-core/bp-core-template.php: bp_is_groups_directory() |
Is the current page the groups directory? |
bp-core/bp-core-template.php: bp_get_options_nav() |
Output the “options nav”, the secondary-level single item navigation menu. |
bp-core/classes/class-bp-attachment-cover-image.php: BP_Attachment_Cover_Image::script_data() |
Build script datas for the Uploader UI. |
bp-core/classes/class-bp-attachment-avatar.php: BP_Attachment_Avatar::get_group_id() |
Get the group id to set its avatar. |
bp-core/bp-core-buddybar.php: bp_core_new_subnav_item() |
Add an item to secondary navigation of the specified component. |
bp-core/bp-core-buddybar.php: bp_nav_item_has_subnav() |
Check whether a given nav item has subnav items. |
bp-core/bp-core-cssjs.php: bp_add_cover_image_inline_css() |
Add inline css to display the component’s single item cover photo. |
bp-core/bp-core-attachments.php: bp_attachments_cover_image_upload_dir() |
Gets the upload dir array for cover photos. |
bp-core/bp-core-catchuri.php: bp_core_filter_wp_query() |
Stop WordPress performing a DB query for its main loop. |
bp-activity/bp-activity-functions.php: bp_activity_at_message_notification() |
Send email and BP notifications when a user is mentioned in an update. |
bp-activity/bp-activity-functions.php: bp_activity_get_current_context() |
Gets the current activity context. |
bp-activity/bp-activity-template.php: bp_has_activities() |
Initialize the activity loop. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.