Contents
bp_is_user()
Is the current page a user page?
Description
Will return true anytime there is a displayed user.
Return
(bool) True if the current page is a user page.
Source
File: bp-core/bp-core-template.php
function bp_is_user() { return (bool) bp_displayed_user_id(); }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-core/bp-core-template.php: bp_displayed_user_id() |
Get the ID of the currently displayed user. |
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/classes/class-bp-document-component.php: BP_Document_Component::late_includes() |
Late includes method. |
bp-document/classes/class-bp-document-component.php: BP_Document_Component::setup_nav() |
Set up component navigation. |
bp-xprofile/classes/class-bp-xprofile-profile-completion-widget.php: BP_Xprofile_Profile_Completion_Widget::widget() |
Displays the widget. |
bp-media/bp-media-functions.php: bp_media_default_scope() |
Get default scope for the media. |
bp-integrations/learndash/core/Core.php: Core::setup_nav() |
Add Course tab in profile menu |
bp-core/bp-core-template.php: bp_is_user_document() |
Is this a user’s document page? |
bp-core/compatibility/bp-rankmath-plugin-helpers.php: BP_RankMath_Title::title() |
Retrieves the SEO title. |
bp-core/compatibility/bp-rankmath-plugin-helpers.php: bp_helper_rankmath_group_page_support() |
Add Page Title on Platform Group Page in Rank Math Plugin |
bp-settings/classes/class-bp-settings-component.php: BP_Settings_Component::late_includes() |
Late includes method. |
bp-forums/classes/class-bp-forums-component.php: BP_Forums_Component::setup_title() |
Sets up the title for pages and |
bp-forums/functions.php: bbp_filter_is_single_user() |
Filter the Forums is_single_user function with BuddyBoss equivalent |
bp-media/classes/class-bp-media-component.php: BP_Media_Component::setup_nav() |
Set up component navigation. |
bp-media/classes/class-bp-media-component.php: BP_Media_Component::late_includes() |
Late includes method. |
bp-notifications/classes/class-bp-notifications-component.php: BP_Notifications_Component::setup_nav() |
Set up component navigation. |
bp-blogs/classes/class-bp-blogs-component.php: BP_Blogs_Component::late_includes() |
Late includes method. |
bp-blogs/classes/class-bp-blogs-theme-compat.php: BP_Blogs_Theme_Compat::is_blogs() |
Are we looking at something that needs Blogs theme compatibility? |
bp-xprofile/bp-xprofile-filters.php: bp_xprofile_escape_field_data() |
Escape field value for display. |
bp-xprofile/classes/class-bp-xprofile-component.php: BP_XProfile_Component::late_includes() |
Late includes method. |
bp-messages/classes/class-bp-messages-component.php: BP_Messages_Component::late_includes() |
Late includes method. |
bp-messages/classes/class-bp-messages-component.php: BP_Messages_Component::setup_nav() |
Set up navigation for user pages. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::late_includes() |
Late includes method. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_nav() |
Set up component navigation. |
bp-groups/bp-groups-activity.php: bp_groups_filter_activity_scope() |
Set up activity arguments for use with the ‘groups’ scope. |
bp-members/bp-members-adminbar.php: bp_members_admin_bar_user_admin_menu() |
Add the User Admin top-level menu to user pages. |
bp-members/bp-members-adminbar.php: bp_members_remove_edit_page_menu() |
Remove rogue WP core Edit menu when viewing a single user. |
bp-members/bp-members-functions.php: bp_core_can_edit_settings() |
Check whether the logged-in user can edit settings for the displayed user. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_title() |
Set up the title for pages and |
bp-members/classes/class-bp-members-theme-compat.php: BP_Members_Theme_Compat::is_members() |
Are we looking at something that needs members theme compatibility? |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::late_includes() |
Late includes method. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_nav() |
Set up fall-back component navigation if XProfile is inactive. |
bp-members/classes/class-bp-core-members-switching.php: BP_Core_Members_Switching::action_bp_button() |
Adds a ‘View As’ link to each member’s profile page and profile listings in BuddyPress. |
bp-members/bp-members-template.php: bp_members_activity_feed() |
Hook member activity feed to . |
bp-members/bp-members-template.php: bp_has_members() |
Initialize the members loop. |
bp-invites/classes/class-bp-invites-component.php: BP_Invites_Component::late_includes() |
Late includes method. |
bp-templates/bp-nouveau/includes/members/template-tags.php: bp_nouveau_member_header_buttons() |
Output the action buttons for the displayed user profile |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_mark_activity_favorite() |
Mark an activity as a favourite 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/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/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_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_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/functions.php: bp_nouveau_theme_cover_image() |
BP Nouveau’s callback for the cover photo feature. |
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/buddypress-functions.php: BP_Nouveau::theme_compat_page_templates() |
Filter the default theme compatibility root template hierarchy, and prepend a page template to the front if it’s set. |
bp-core/deprecated/buddypress/1.7.php: bp_is_page() |
No longer used by BuddyPress core |
bp-core/deprecated/buddypress/1.5.php: bp_is_member() | |
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_user_messages() |
Is the current page part of a user’s Messages pages? |
bp-core/bp-core-template.php: bp_is_user_media() |
Is this a user’s media page? |
bp-core/bp-core-template.php: bp_is_user_notifications() |
Is this a user’s notifications page? |
bp-core/bp-core-template.php: bp_is_user_settings() |
Is this a user’s settings page? |
bp-core/bp-core-template.php: bp_is_user_invites() |
Is this a user’s send invites page? |
bp-core/bp-core-template.php: bp_is_user_friends() |
Is the current page a user’s Connections page? |
bp-core/bp-core-template.php: bp_is_user_groups() |
Is the current page part of a user’s Groups page? |
bp-core/bp-core-template.php: bp_is_user_blogs() |
Is the current page part of a user’s Blogs page? |
bp-core/bp-core-template.php: bp_is_user_front() |
Is the current page a user custom front page? |
bp-core/bp-core-template.php: bp_is_user_activity() |
Is the current page a user’s activity feed page? |
bp-core/bp-core-template.php: bp_is_members_directory() |
Is the current page the members directory? |
bp-core/bp-core-template.php: bp_is_blog_page() |
Is this a blog page, ie a non-BP page? |
bp-core/bp-core-template.php: is_buddypress() |
Is this a BuddyPress component? |
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_user_id() |
Get the user id to set its avatar. |
bp-core/bp-core-buddybar.php: bp_core_register_subnav_screen_function() |
Register a screen function, whether or not a related subnav link exists. |
bp-core/bp-core-buddybar.php: bp_core_maybe_hook_new_subnav_screen_function() |
For a given subnav item, either hook the screen function or generate redirect arguments, as necessary. |
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-filters.php: bp_core_menu_highlight_parent_page() |
Adds current page CSS classes to the parent BP page in a WP Page Menu. |
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_total_follow_counts() |
Get the total followers and total following counts for a user. |
bp-activity/bp-activity-functions.php: bp_activity_get_current_context() |
Gets the current activity context. |
bp-activity/bp-activity-filters.php: bp_add_member_follow_scope_filter() |
Filter the members loop on a follow page. |
bp-activity/bp-activity-filters.php: bp_activity_display_all_types_on_just_me() |
Returns $args to force display of all member activity types on members activity feed. |
bp-activity/actions/feeds.php: bp_activity_action_sitewide_feed() |
Load the sitewide activity feed. |
bp-activity/classes/class-bp-activity-component.php: BP_Activity_Component::late_includes() |
Late includes method. |
bp-activity/classes/class-bp-activity-component.php: BP_Activity_Component::setup_globals() |
Set up component global variables. |
bp-activity/bp-activity-template.php: bp_get_send_public_message_link() |
Return the public message link for the displayed user. |
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.