bp_is_group()
Does the current page belong to a single group?
Description #Description
Will return true for any subpage of a single group.
Return #Return
(bool) True if the current page is part of a single group.
Source #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; }
Expand full source code Collapse full source code View on Trac
Related #Related
Uses #Uses
Uses | Description |
---|---|
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. |
bp-groups/bp-groups-functions.php: groups_get_current_group() |
Get the BP_Groups_Group object corresponding to the current group. |
Used By #Used By
Used By | Description |
---|---|
bp-core/bp-core-catchuri.php: bp_core_filter_wp_query() |
Stop WordPress performing a DB query for its main loop. |
bp-core/classes/class-bp-attachment-avatar.php: BP_Attachment_Avatar::get_group_id() |
Get the group id to set its avatar. |
bp-core/classes/class-bp-attachment-cover-image.php: BP_Attachment_Cover_Image::script_data() |
Build script datas for the Uploader UI. |
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_get_the_post_class() |
Customizes the post CSS class according to BuddyPress content. |
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/bp-core-attachments.php: bp_attachments_cover_image_upload_dir() |
Gets the upload dir array for cover images. |
bp-core/bp-core-cssjs.php: bp_add_cover_image_inline_css() |
Add inline css to display the component’s single item cover image. |
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-activity/bp-activity-template.php: bp_has_activities() |
Initialize the activity 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-templates/bp-nouveau/includes/classes.php: BP_Nouveau_Object_Nav_Widget::widget() |
Displays the output, the button to post new support topics |
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/template-tags.php: bp_nouveau_is_feed_enable() |
Checks whether the Activity RSS links should be output. |
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-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_nav_classes() |
Returns the single item nav container classes |
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_before_loop() |
Template tag to wrap the before component loop |
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/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() | |
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 template meta. |
bp-templates/bp-nouveau/includes/groups/template-tags.php: bp_nouveau_group_meta() |
Display the group meta. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_post_update() |
Processes Activity updates received via a POST request. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::late_includes() |
Late includes method. |
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/bp-groups-template.php: bp_groups_activity_feed() |
Hook group activity feed to . |
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/bp-groups-activity.php: bp_groups_get_activity_group() |
Get the group object the activity belongs to. |
bp-groups/actions/access.php: bp_groups_group_access_protection() |
Protect access to single groups. |
Changelog #Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |