Contents
bp_is_single_item()
Are we looking at a single item? (group, user, etc).
Description
Return
(bool) True if looking at a single item, otherwise false.
Source
File: bp-core/bp-core-template.php
function bp_is_single_item() { $bp = buddypress(); $retval = false; if ( isset( $bp->is_single_item ) ) { $retval = $bp->is_single_item; } /** * Filters whether or not an item is the a single item. (group, user, etc) * * @since BuddyPress 2.1.0 * * @param bool $retval Whether or not an item is a single item. */ return (bool) apply_filters( 'bp_is_single_item', $retval ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-loader.php: buddypress() |
The main function responsible for returning the one true BuddyBoss Instance to functions everywhere. |
bp-core/bp-core-template.php: bp_is_single_item |
Filters whether or not an item is the a single item. (group, user, etc) |
Used By | Description |
---|---|
bp-messages/bp-messages-functions.php: bp_messages_show_sites_notices() |
Display Sites notices on all the page |
bp-groups/screens/single/documents.php: groups_screen_group_document() |
Handle the loading of a single group’s documents. |
bp-groups/screens/single/messages.php: groups_screen_group_messages() |
Handle the display of a group’s Group Messages page. |
bp-core/bp-core-template.php: bp_is_group_messages() |
Is the current page a group’s message page? |
bp-core/bp-core-template.php: bp_is_group_folders() |
Is the current page a group’s folder page? |
bp-core/bp-core-template.php: bp_is_group_document() |
Is the current page a group’s document page? |
bp-activity/bp-activity-template.php: bp_activity_user_can_edit() |
Determine if the current user can edit an activity item. |
bp-forums/groups.php: BBP_Forums_Group_Extension::setup_filters() |
Setup the group forums class filters |
bp-groups/screens/single/subgroups.php: groups_screen_group_subgroups() |
Handle the loading of a single group’s subgroups. |
bp-groups/screens/single/activity.php: groups_screen_group_activity() |
Handle the loading of a single group’s activity. |
bp-groups/screens/single/home.php: groups_screen_group_home() |
Handle the loading of a single group’s page. |
bp-groups/screens/single/invite.php: groups_screen_group_invite() |
Handle the display of a group’s Send Invites page. |
bp-groups/screens/single/members.php: groups_screen_group_members() |
Handle the display of a group’s Members page. |
bp-groups/screens/single/photos.php: groups_screen_group_media() |
Handle the loading of a single group’s photos. |
bp-groups/actions/join.php: groups_action_join_group() |
Catch and process “Join Group” button clicks. |
bp-groups/screens/single/albums.php: groups_screen_group_albums() |
Handle the loading of a single group’s albums. |
bp-groups/actions/leave-group.php: groups_action_leave_group() |
Catch and process “Leave Group” button clicks. |
bp-groups/classes/class-bp-groups-theme-compat.php: BP_Groups_Theme_Compat::is_group() |
Are we looking at something that needs group theme compatibility? |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_title() |
Set up the title for pages and |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_nav() |
Set up component navigation. |
bp-groups/bp-groups-template.php: bp_group_is_activity_permalink() |
Determine whether the current page is a group activity permalink. |
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/functions.php: bp_nouveau_ajax_querystring() |
This function looks scarier than it actually is. 🙂 Each object loop (activity/members/groups/blogs/forums) contains default parameters to show specific information based on the page we are currently looking at. |
bp-core/bp-core-template.php: bp_get_title_parts() |
Get the title parts of the BuddyPress displayed page |
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_group_media() |
Is the current page a group’s activity page? |
bp-core/bp-core-template.php: bp_is_group_albums() |
Is the current page a group’s activity page? |
bp-core/bp-core-template.php: bp_is_group_subgroups() |
Is the current page a group’s subgroups page? |
bp-core/bp-core-template.php: bp_is_group_forum_topic() |
Is the current page a group forum topic? |
bp-core/bp-core-template.php: bp_is_group_forum_topic_edit() |
Is the current page a group forum topic edit page? |
bp-core/bp-core-template.php: bp_is_group_members() |
Is the current page a group’s Members page? |
bp-core/bp-core-template.php: bp_is_group_leaders() |
Is the current page a group’s Leaders page? |
bp-core/bp-core-template.php: bp_is_group_leave() |
Is the current page a leave group attempt? |
bp-core/bp-core-template.php: bp_is_group_single() |
Is the current page part of a single group? |
bp-core/bp-core-template.php: bp_is_group_admin_page() |
Is the current page part of a single group’s admin screens? |
bp-core/bp-core-template.php: bp_is_group_activity() |
Is the current page a group’s activity page? |
bp-core/bp-core-template.php: bp_is_group_home() |
Is the current page a single group’s home page? |
bp-core/bp-core-template.php: bp_get_options_nav() |
Output the “options nav”, the secondary-level single item navigation menu. |
bp-activity/bp-activity-template.php: bp_activity_user_can_delete() |
Determine if the current user can delete an activity item. |
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.