bp_is_active( string $component = '', string $feature = '' )
Check whether a given component (or feature of a component) is active.
Parameters #Parameters
- $component
-
(string) (Optional) The component name.
Default value: ''
- $feature
-
(string) (Optional) The feature name.
Default value: ''
Return #Return
(bool)
Source #Source
File: bp-core/bp-core-template.php
function bp_is_active( $component = '', $feature = '' ) { $retval = false; // Default to the current component if none is passed. if ( empty( $component ) ) { $component = bp_current_component(); } // Is component in either the active or required components arrays. if ( isset( buddypress()->active_components[ $component ] ) || in_array( $component, buddypress()->required_components, true ) ) { $retval = true; // Is feature active? if ( ! empty( $feature ) ) { // The xProfile component is specific. if ( 'xprofile' === $component ) { $component = 'profile'; // The Cover Image feature has been moved to the Members component in 6.0.0. if ( 'cover_image' === $feature && 'profile' === $component ) { _doing_it_wrong( 'bp_is_active( \'profile\', \'cover_image\' )', esc_html__( 'The cover image is a Members component feature, please use bp_is_active( \'members\', \'cover_image\' ) instead.', 'buddypress' ), '6.0.0' ); $members_component = buddypress()->members; if ( ! isset( $members_component->features ) || false === in_array( $feature, $members_component->features, true ) ) { $retval = false; } /** This filter is documented in wp-includes/deprecated.php */ return apply_filters_deprecated( 'bp_is_profile_cover_image_active', array( $retval ), '6.0.0', 'bp_is_members_cover_image_active' ); } } $component_features = isset( buddypress()->{$component}->features ) ? buddypress()->{$component}->features : array(); if ( empty( $component_features ) || false === in_array( $feature, $component_features, true ) ) { $retval = false; } /** * Filters whether or not a given feature for a component is active. * * This is a variable filter that is based on the component and feature * that you are checking of active status of. * * @since 2.3.0 * * @param bool $retval */ $retval = apply_filters( "bp_is_{$component}_{$feature}_active", $retval ); } } /** * Filters whether or not a given component has been activated by the admin. * * @since 2.1.0 * * @param bool $retval Whether or not a given component has been activated by the admin. * @param string $component Current component being checked. */ return apply_filters( 'bp_is_active', $retval, $component ); }
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_{$component}_{$feature}_active |
Filters whether or not a given feature for a component is active. |
bp-core/bp-core-template.php: bp_is_active |
Filters whether or not a given component has been activated by the admin. |
bp-core/bp-core-template.php: bp_current_component() |
Return the name of the current component. |
bp-loader.php: buddypress() |
The main function responsible for returning the one true BuddyPress Instance to functions everywhere. |
Used By #Used By
Used By | Description |
---|---|
bp-core/bp-core-catchuri.php: bp_core_catch_profile_uri() |
Redirect away from /profile URIs if XProfile is not enabled. |
bp-core/admin/bp-core-admin-functions.php: bp_admin_separator() |
Add a separator to the WordPress admin menus. |
bp-core/admin/bp-core-admin-functions.php: bp_core_activation_notice() |
Verify that some BP prerequisites are set up properly, and notify the admin if not. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_list() |
Get the array of the repair list. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_friend_count() |
Recalculate friend counts for each user. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_group_count() |
Recalculate group counts for each user. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_blog_records() |
Recalculate user-to-blog relationships and useful blog meta data. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_blog_site_icons() |
Repair site icons/blog avatars synchronization. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_invitations_table() |
Create the invitations database table if it does not exist. |
bp-core/bp-core-rest-api.php: bp_rest_register_field() |
Registers a new field on an existing BuddyPress object. |
bp-core/bp-core-avatars.php: bp_avatar_is_front_edit() |
Checks whether Avatar UI should be loaded. |
bp-core/bp-core-avatars.php: bp_avatar_ajax_upload() |
Ajax upload an avatar. |
bp-core/bp-core-avatars.php: bp_core_fetch_avatar() |
Get an avatar for a BuddyPress object. |
bp-core/bp-core-functions.php: bp_email_unsubscribe_handler() |
Handles unsubscribing user from notification emails. |
bp-core/bp-core-functions.php: bp_core_action_search_site() |
A JavaScript-free implementation of the search functions in BuddyPress. |
bp-core/bp-core-functions.php: bp_core_get_directory_page_ids() |
Fetch a list of BP directory pages from the appropriate meta table. |
bp-core/classes/class-bp-user-query.php: BP_User_Query::prepare_user_ids_query() |
Prepare the query for user_ids. |
bp-core/classes/class-bp-core.php: BP_Core::__get() |
Magic getter. |
bp-core/classes/class-bp-core.php: BP_Core::bootstrap() |
Populate the global data needed before BuddyPress can continue. |
bp-core/classes/class-bp-core-bp-nav-backcompat.php: BP_Core_BP_Nav_BackCompat::get_component() |
Get the component to which the a nav item belongs. |
bp-core/classes/class-bp-button.php: BP_Button::__construct() |
Builds the button based on class parameters. |
bp-core/classes/class-bp-media-extractor.php: BP_Media_Extractor::extract_mentions() |
Extract @mentions tags from text. |
bp-core/classes/class-bp-rest-components-endpoint.php: BP_REST_Components_Endpoint::update_item() |
Activate/Deactivate a component. |
bp-core/classes/class-bp-rest-components-endpoint.php: BP_REST_Components_Endpoint::verify_component_status() |
Verify Component Status. |
bp-core/classes/class-bp-admin.php: BP_Admin::register_admin_settings() |
Register the settings. |
bp-core/classes/class-bp-admin.php: BP_Admin::add_privacy_policy_content() |
Registers BuddyPress’s suggested privacy policy language. |
bp-core/classes/class-bp-core-user.php: BP_Core_User::get_user_extras() |
Fetch extra user information, such as friend count and last profile update message. |
bp-core/classes/class-bp-core-user.php: BP_Core_User::populate() |
Populate the instantiated class with data based on the User ID provided. |
bp-core/classes/class-bp-core-user.php: BP_Core_User::populate_extras() |
Populates extra fields such as group and friendship counts. |
bp-core/classes/class-bp-core-user.php: BP_Core_User::get_users() |
Get a list of users that match the query parameters. |
bp-core/classes/class-bp-members-suggestions.php: BP_Members_Suggestions::validate() |
Validate and sanitise the parameters for the suggestion service query. |
bp-core/deprecated/1.9.php: bp_core_delete_all_notifications_by_type() |
Delete all notifications for by type. |
bp-core/deprecated/1.9.php: bp_core_delete_notifications_from_user() |
Delete all notifications for a user. |
bp-core/deprecated/1.9.php: bp_core_check_notification_access() |
Check if a user has access to a specific notification. |
bp-core/deprecated/1.9.php: bp_core_add_notification() |
Add a notification for a specific user, from a specific component. |
bp-core/deprecated/1.9.php: bp_core_delete_notification() |
Delete a specific notification by its ID. |
bp-core/deprecated/1.9.php: bp_core_get_notification() |
Get a specific notification by its ID. |
bp-core/deprecated/1.9.php: bp_core_get_notifications_for_user() |
Get notifications for a specific user. |
bp-core/deprecated/1.9.php: bp_core_delete_notifications_by_type() |
Delete notifications for a user by type. |
bp-core/deprecated/1.9.php: bp_core_delete_notifications_by_item_id() |
Delete notifications for an item ID. |
bp-core/bp-core-filters.php: bp_email_set_default_tokens() |
Add default email tokens. |
bp-core/bp-core-filters.php: bp_core_activation_signup_user_notification() |
Notify new users of a successful registration (without blog). |
bp-core/bp-core-filters.php: bp_core_activation_signup_blog_notification() |
Notify new users of a successful registration (with blog). |
bp-core/bp-core-template.php: bp_is_group() |
Does the current page belong to a single group? |
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_members() |
Is the current page a group’s Members page? |
bp-core/bp-core-template.php: bp_is_user_groups_activity() |
Is the current page a user’s Groups activity stream? |
bp-core/bp-core-template.php: bp_is_user_friends_activity() |
Is the current page a user’s Friends activity stream? |
bp-core/bp-core-template.php: bp_search_form_type_select() |
Generate the basic search form as used in BP-Default’s header. |
bp-core/bp-core-attachments.php: bp_attachments_current_user_can() |
Check the current user’s capability to edit an avatar for a given object. |
bp-core/bp-core-attachments.php: bp_attachments_cover_image_is_edit() |
Are we on a page to edit a cover image? |
bp-core/bp-core-update.php: bp_update_to_5_0() |
5.0.0 update routine. |
bp-core/bp-core-update.php: bp_update_to_2_2() |
2.2.0 update routine. |
bp-core/bp-core-update.php: bp_update_to_2_3() |
2.3.0 update routine. |
bp-core/bp-core-update.php: bp_update_to_2_7() |
2.7.0 update routine. |
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_remove_subnav_item() |
Deletes an item from the secondary navigation of the specified component. |
bp-core/bp-core-buddybar.php: bp_core_new_nav_item() |
Add an item to the primary navigation of the specified component. |
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_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-buddybar.php: bp_core_remove_nav_item() |
Deletes an item from the primary navigation of the specified component. |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::extra_tablenav() |
Markup for the “filter” part of the form (i.e. which activity type to display). |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::can_comment() |
Checks if an activity item can be replied to. |
bp-activity/classes/class-bp-activity-component.php: BP_Activity_Component::includes() |
Include component files. |
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_nav() |
Set up component navigation. |
bp-activity/classes/class-bp-activity-component.php: BP_Activity_Component::setup_admin_bar() |
Set up the component entries in the WordPress Admin Bar. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::prepare_item_for_database() |
Prepare an activity for create or update. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::prepare_links() |
Prepare links for the request. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::show_hidden() |
Show hidden activity? |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::create_item() |
Create an activity. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::create_item_permissions_check() |
Checks if a given request has access to create an activity. |
bp-activity/classes/class-bp-activity-activity.php: BP_Activity_Activity::get_activity_comments() |
Get activity comments that are associated with a specific activity ID. |
bp-activity/classes/class-bp-activity-activity.php: BP_Activity_Activity::append_user_fullnames() |
Append xProfile fullnames to an activity array. |
bp-activity/screens/friends.php: bp_activity_screen_friends() |
Load the ‘My Friends’ activity page. |
bp-activity/screens/groups.php: bp_activity_screen_groups() |
Load the ‘My Groups’ activity page. |
bp-activity/screens/permalink.php: bp_activity_action_permalink_router() |
Catch and route requests for single activity item permalinks. |
bp-activity/bp-activity-template.php: bp_get_member_activity_feed_link() |
Return the member activity feed link. |
bp-activity/bp-activity-template.php: bp_get_activity_secondary_avatar() |
Return the avatar of the object that action was performed on. |
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_user_can_read() |
Can a user see a particular activity item? |
bp-activity/bp-activity-functions.php: bp_activity_get_current_context() |
Gets the current activity context. |
bp-blogs/bp-blogs-widgets.php: bp_blogs_register_widgets() |
Register the widgets for the Blogs component. |
bp-activity/actions/feeds.php: bp_activity_action_friends_feed() |
Load a user’s friends’ activity feed. |
bp-activity/actions/feeds.php: bp_activity_action_my_groups_feed() |
Load the activity feed for a user’s groups. |
bp-activity/actions/post.php: bp_activity_action_post_update() |
Post user/group activity update. |
bp-blogs/bp-blogs-template.php: bp_get_blog_avatar() |
Get a blog’s avatar. |
bp-blogs/classes/class-bp-blogs-component.php: BP_Blogs_Component::rest_api_init() |
Init the BP REST API. |
bp-blogs/classes/class-bp-blogs-component.php: BP_Blogs_Component::includes() |
Include bp-blogs files. |
bp-blogs/classes/class-bp-blogs-component.php: BP_Blogs_Component::setup_title() |
Set up the title for pages and |
bp-settings/bp-settings-functions.php: bp_settings_personal_data_exporter() |
Finds and exports personal data associated with an email address from the Settings component. |
bp-members/bp-members-widgets.php: bp_core_ajax_widget_members() |
AJAX request handler for Members widgets. |
bp-members/bp-members-blocks.php: bp_members_editor_settings() |
Add BP Members blocks specific settings to the BP Blocks Editor ones. |
bp-members/bp-members-blocks.php: bp_members_render_member_block() |
Callback function to render the BP Member Block. |
bp-members/bp-members-blocks.php: bp_members_render_members_block() |
Callback function to render the BP Members Block. |
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/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_admin_bar_notifications_menu() |
Build the “Notifications” dropdown. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::includes() |
Include bp-members files. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_globals() |
Set up bp-members global settings. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_canonical_stack() |
Set up canonical stack for this component. |
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-members-component.php: BP_Members_Component::setup_admin_bar() |
Set up the Admin Bar. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::rest_api_init() |
Init the BP REST API. |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::signups_admin_manage() |
This is the confirmation screen for actions. |
bp-members/classes/class-bp-rest-members-endpoint.php: BP_REST_Members_Endpoint::user_data() |
Method to facilitate fetching of user data. |
bp-members/classes/class-bp-rest-members-endpoint.php: BP_REST_Members_Endpoint::xprofile_data() |
Get XProfile info from the user. |
bp-members/classes/class-bp-signup.php: BP_Signup::add_backcompat() |
Create a WP user at signup. |
bp-members/classes/class-bp-signup.php: BP_Signup::resend() |
Resend an activation email. |
bp-members/classes/class-bp-rest-signup-endpoint.php: BP_REST_Signup_Endpoint::get_item_schema() |
Get the signup schema, conforming to JSON Schema. |
bp-members/classes/class-bp-core-members-widget.php: BP_Core_Members_Widget::widget() |
Display the Members widget. |
bp-members/bp-members-activity.php: bp_members_new_avatar_activity() |
Adds an activity stream item when a user has uploaded a new avatar. |
bp-members/bp-members-filters.php: bp_members_edit_profile_url() |
Filter the user profile URL to point to BuddyPress profile edit. |
bp-members/screens/register.php: bp_core_screen_signup() |
Handle the loading of the signup screen. |
bp-members/bp-members-template.php: bp_members_activity_feed() |
Hook member activity feed to . |
bp-members/bp-members-template.php: bp_get_members_invitations_allowed() |
Are users allowed to invite users to join this site? |
bp-members/bp-members-template.php: bp_displayed_user_use_cover_image_header() |
Should we use the cover image header |
bp-members/bp-members-template.php: bp_member_random_profile_data() |
Output a random piece of profile data for the current member in the loop. |
bp-members/bp-members-template.php: bp_get_loggedin_user_nav() |
Render the navigation markup for the logged-in user. |
bp-members/bp-members-template.php: bp_get_member_latest_update() |
Get the latest update from the current member in the loop. |
bp-members/bp-members-template.php: bp_get_member_profile_data() |
Get a piece of user profile data. |
bp-members/bp-members-functions.php: bp_core_wpsignup_redirect() |
Redirect away from wp-signup.php if BP registration templates are present. |
bp-members/bp-members-functions.php: bp_core_activate_signup() |
Activate a signup, as identified by an activation key. |
bp-members/bp-members-functions.php: bp_members_migrate_signups() |
Migrate signups from pre-2.0 configuration to wp_signups. |
bp-members/bp-members-functions.php: bp_core_map_user_registration() |
Map a user’s WP display name to the XProfile fullname field, if necessary. |
bp-members/bp-members-functions.php: bp_core_signup_user() |
Process data submitted at user registration and convert to a signup object. |
bp-members/bp-members-functions.php: bp_core_process_spammer_status() |
Process a spammed or unspammed user. |
cli/src/friends.php: Friends::check_dependencies() |
Dependency check for this CLI command. |
cli/src/group.php: Group::check_dependencies() |
Dependency check for this CLI command. |
cli/src/components.php: Components::activate() |
Activate a component. |
cli/src/components.php: Components::deactivate() |
Deactivate a component. |
cli/src/components.php: Components::verify_component_status() |
Verify Component Status. |
cli/src/activity.php: Activity::generate_item_details() |
Generate item details. |
cli/src/xprofile.php: XProfile::check_dependencies() |
Dependency check for this CLI command. |
cli/src/activity.php: Activity::check_dependencies() |
Dependency check for this CLI command. |
cli/src/messages.php: Messages::check_dependencies() |
Dependency check for this CLI command. |
cli/src/notification.php: Notification::check_dependencies() |
Dependency check for this CLI command. |
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/ajax.php: bp_nouveau_ajax_spam_activity() |
AJAX spam an activity item or comment. |
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/activity/functions.php: bp_nouveau_get_activity_directory_nav_items() | |
bp-templates/bp-nouveau/includes/activity/functions.php: bp_nouveau_activity_scope_newest_class() | |
bp-templates/bp-nouveau/includes/ajax.php: bp_nouveau_ajax_object_template_loader() |
Load the template loop for the current object. |
bp-templates/bp-nouveau/includes/members/functions.php: bp_nouveau_get_members_directory_nav_items() |
Get the nav items for the Members directory |
bp-templates/bp-nouveau/includes/members/functions.php: bp_nouveau_get_members_filters() |
Get Dropdown filters for the members component |
bp-templates/bp-nouveau/includes/members/template-tags.php: bp_nouveau_members_loop_buttons() |
Output the action buttons in member loops |
bp-templates/bp-nouveau/includes/members/template-tags.php: bp_nouveau_get_members_buttons() |
Get the action buttons for the displayed user profile |
bp-templates/bp-nouveau/includes/functions.php: bp_nouveau_get_component_slug() |
Gets the component’s slug thanks to its ID. |
bp-templates/bp-nouveau/includes/functions.php: bp_nouveau_get_appearance_settings() |
Get the BP Nouveau Appearance settings. |
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_register_sidebars() |
Register the 2 sidebars for the Group & User default front page |
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_search_objects() |
Get The list of search objects (primary + secondary). |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_search_object_data_attr() |
Output the search form data-bp attribute. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_container_classes() |
Returns the main BuddyPress container classes. |
bp-templates/bp-nouveau/includes/groups/classes.php: BP_Nouveau_Customizer_Group_Nav::setup_nav() |
Setup a temporary nav with only the needed parameters. |
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/ajax.php: bp_nouveau_ajax_send_group_invites() | |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_groups_screen_invites_restriction() |
Group invites restriction screen. |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_restrict_rest_group_invite_to_friends() |
Makes sure the BP REST API groups/invites endpoint respects invite restrictions. |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_groups_localize_scripts() |
Localize the strings needed for the Group’s Invite UI |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_get_group_potential_invites() | |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_group_invites_create_steps() | |
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_template_part() |
Load the appropriate content for the single group pages |
bp-templates/bp-nouveau/includes/groups/loader.php: BP_Nouveau_Groups::setup_actions() |
Register do_action() hooks |
bp-templates/bp-nouveau/includes/groups/loader.php: BP_Nouveau_Groups::setup_filters() |
Register add_filter() hooks |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_messages_send_reply() | |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_get_user_message_threads() | |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_messages_thread_read() | |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_get_thread_messages() | |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_star_thread_messages() | |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_dismiss_sitewide_notice() | |
bp-templates/bp-nouveau/includes/messages/functions.php: bp_nouveau_messages_localize_scripts() |
Localize the strings needed for the messages UI |
bp-templates/bp-nouveau/includes/messages/functions.php: bp_nouveau_add_notice_notification_for_user() | |
bp-templates/bp-nouveau/includes/friends/ajax.php: bp_nouveau_ajax_addremove_friend() |
Friend/un-friend a user via a POST request. |
bp-templates/bp-nouveau/buddypress-functions.php: BP_Nouveau::includes() |
Includes! |
bp-templates/bp-nouveau/buddypress-functions.php: BP_Nouveau::register_scripts() |
Register Template Pack JavaScript files |
bp-templates/bp-nouveau/buddypress-functions.php: BP_Nouveau::localize_scripts() |
Load localizations for topic script. |
bp-templates/bp-legacy/buddypress-functions.php: BP_Legacy::setup_actions() |
Setup the theme hooks. |
bp-templates/bp-legacy/buddypress-functions.php: BP_Legacy::enqueue_scripts() |
Enqueue the required JavaScript files |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_messages_star_handler() |
AJAX callback to set a message’s star status. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_post_update() |
Processes Activity updates received via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_spam_activity() |
AJAX spam an activity item or comment. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_object_template_loader() |
Load the template loop for the current object. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_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-messages/classes/class-bp-messages-notices-admin.php: BP_Messages_Notices_Admin::register_notices_admin() |
Create a new instance or access the current instance of this class. |
bp-messages/classes/class-bp-messages-notices-admin.php: BP_Messages_Notices_Admin::admin_menu() |
Add the ‘Site Notices’ admin menu item. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::get_collection_params() |
Get the query params for Messages collections. |
bp-messages/classes/class-bp-messages-component.php: BP_Messages_Component::includes() |
Include files. |
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-messages/classes/class-bp-messages-component.php: BP_Messages_Component::setup_admin_bar() |
Set up the Toolbar. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::prepare_message_for_response() |
Prepares message data for the REST response. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::prepare_links() |
Prepare links for the request. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::register_routes() |
Register the component routes. |
bp-groups/bp-groups-notifications.php: bp_groups_accept_request_mark_notifications() |
Mark notifications read when a member’s group membership request is granted. |
bp-groups/bp-groups-notifications.php: bp_groups_screen_my_groups_mark_notifications() |
Mark notifications read when a member views their group memberships. |
bp-groups/bp-groups-notifications.php: bp_groups_screen_invites_mark_notifications() |
Mark group invitation notifications read when a member views their invitations. |
bp-groups/bp-groups-notifications.php: bp_groups_screen_group_admin_requests_mark_notifications() |
Mark group join requests read when an admin or moderator visits the group administration area. |
bp-groups/bp-groups-notifications.php: bp_groups_remove_data_for_user_notifications() |
Delete new group membership notifications when a user is being deleted. |
bp-groups/bp-groups-notifications.php: bp_groups_delete_promotion_notifications() |
When a demotion takes place, delete any corresponding promotion notifications. |
bp-groups/bp-groups-notifications.php: bp_groups_accept_invite_mark_notifications() |
Mark notifications read when a member accepts a group invitation. |
bp-groups/bp-groups-notifications.php: groups_notification_new_membership_request() |
Notify group admin about new membership request. |
bp-groups/bp-groups-notifications.php: groups_notification_membership_request_completed() |
Notify member about their group membership request. |
bp-groups/bp-groups-notifications.php: groups_notification_promoted_member() |
Notify group member they have been promoted. |
bp-groups/bp-groups-notifications.php: groups_notification_group_invites() |
Notify a member they have been invited to a group. |
bp-groups/bp-groups-notifications.php: bp_groups_delete_group_delete_all_notifications() |
Remove all notifications for any member belonging to a specific group. |
bp-groups/bp-groups-notifications.php: bp_groups_uninvite_user_delete_group_invite_notification() |
Remove Group invite notification when a user is uninvited. |
bp-groups/bp-groups-admin.php: bp_groups_admin_edit_metabox_settings() |
Markup for the single group’s Settings metabox. |
bp-groups/classes/class-bp-rest-group-membership-endpoint.php: BP_REST_Group_Membership_Endpoint::get_collection_params() |
Get the query params for collections of group memberships. |
bp-groups/classes/class-bp-groups-member.php: BP_Groups_Member::get_all_for_group() |
Get members of a group. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::includes() |
Include Groups component files. |
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_globals() |
Set up component global data. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_canonical_stack() |
Set up canonical stack for this component. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_nav() |
Set up component navigation. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::rest_api_init() |
Init the BP REST API. |
bp-groups/classes/class-bp-groups-invite-template.php: BP_Groups_Invite_Template::the_invite() |
Sets up the invite to show. |
bp-groups/classes/class-bp-group-member-query.php: BP_Group_Member_Query::get_gm_ids_ordered_by_activity() |
Sort user IDs by how recently they have generated activity within a given group. |
bp-groups/classes/class-bp-groups-member-suggestions.php: BP_Groups_Member_Suggestions::validate() |
Validate and sanitise the parameters for the suggestion service query. |
bp-groups/bp-groups-template.php: bp_groups_activity_feed() |
Hook group activity feed to . |
bp-groups/bp-groups-template.php: bp_get_new_group_invite_friend_list() |
Return a list of friends who can be invited to a group |
bp-groups/bp-groups-template.php: bp_groups_members_filter() |
Output the Group members filters |
bp-groups/bp-groups-template.php: bp_groups_front_template_part() |
Output the contents of the current group’s home page. |
bp-groups/bp-groups-template.php: bp_has_friends_to_invite() |
Determine whether the current user has friends to invite to a group. |
bp-groups/bp-groups-template.php: bp_group_admin_memberlist() |
Since BuddyPress 1.0, this generated the group settings admin/member screen. |
bp-groups/bp-groups-template.php: bp_group_mod_memberlist() |
Generate the HTML for a list of group moderators. |
bp-groups/bp-groups-template.php: bp_group_use_cover_image_header() |
Should we use the group’s cover image header. |
bp-groups/screens/user/invites.php: groups_screen_group_invites() |
Handle the loading of a user’s Groups > Invites page. |
bp-groups/screens/single/activity-permalink.php: groups_screen_group_activity_permalink() |
Handle the display of a single group activity item. |
bp-groups/bp-groups-activity.php: bp_groups_leave_group_delete_recent_activity() |
Delete group member activity if they leave or are removed within 5 minutes of membership modification. |
bp-groups/bp-groups-blocks.php: bp_groups_editor_settings() |
Add BP Groups blocks specific settings to the BP Blocks Editor ones. |
bp-groups/bp-groups-blocks.php: bp_groups_render_group_block() |
Callback function to render the BP Group Block. |
bp-groups/bp-groups-activity.php: bp_groups_membership_accepted_add_activity() |
Add an activity stream item when a member joins a group. |
bp-groups/bp-groups-activity.php: bp_groups_group_details_updated_add_activity() |
Add an activity item when a group’s details are updated. |
bp-groups/bp-groups-activity.php: bp_groups_delete_group_delete_all_activity() |
Delete all activity items related to a specific group. |
bp-groups/bp-groups-activity.php: groups_register_activity_actions() |
Register activity actions for the Groups component. |
bp-groups/bp-groups-activity.php: groups_record_activity() |
Record an activity item related to the Groups component. |
bp-groups/actions/feed.php: groups_action_group_feed() |
Load the activity feed for the current group. |
bp-groups/actions/create.php: groups_action_create_group() |
Catch and process group creation form submissions. |
bp-groups/bp-groups-functions.php: groups_join_group() |
Add a user to a group. |
bp-xprofile/bp-xprofile-functions.php: bp_xprofile_get_hidden_field_types_for_user() |
Get the visibility levels that should be hidden for this user pair. |
bp-xprofile/classes/class-bp-xprofile-component.php: BP_XProfile_Component::includes() |
Include files. |
bp-xprofile/classes/class-bp-xprofile-component.php: BP_XProfile_Component::setup_globals() |
Setup globals. |
bp-xprofile/classes/class-bp-xprofile-component.php: BP_XProfile_Component::setup_settings_nav() |
Set up the Settings > Profile nav item. |
bp-xprofile/bp-xprofile-filters.php: bp_xprofile_filter_user_query_populate_extras() |
Filter BP_User_Query::populate_extras to override each queries users fullname. |
bp-xprofile/screens/settings-profile.php: bp_xprofile_screen_settings() |
Show the xprofile settings template. |
bp-xprofile/bp-xprofile-activity.php: xprofile_record_activity() |
Records activity for the logged in user within the profile component so that it will show in the users activity stream (if installed). |
bp-xprofile/bp-xprofile-activity.php: xprofile_delete_activity() |
Deletes activity for a user within the profile component so that it will be removed from the users activity stream and sitewide stream (if installed). |
bp-xprofile/bp-xprofile-activity.php: xprofile_register_activity_action() |
Register an activity action for the Extended Profiles component. |
bp-xprofile/bp-xprofile-activity.php: bp_xprofile_updated_profile_activity() |
Add an activity item when a user has updated his profile. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_ajax_messages_autocomplete_results() |
AJAX handler for autocomplete. Displays friends only, unless BP_MESSAGES_AUTOCOMPLETE_ALL is defined. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_object_template_loader() |
Load the template loop for the current object. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_post_update() |
Processes Activity updates received via a POST request. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_spam_activity() |
AJAX spam an activity item or comment |
bp-themes/bp-default/functions.php: bp_dtheme_setup() |
Sets up theme defaults and registers support for various WordPress and BuddyPress features. |
bp-friends/bp-friends-activity.php: friends_record_activity() |
Record an activity item related to the Friends component. |
bp-friends/bp-friends-activity.php: friends_delete_activity() |
Delete an activity item related to the Friends component. |
bp-friends/bp-friends-activity.php: friends_register_activity_actions() |
Register the activity actions for bp-friends. |
bp-friends/bp-friends-activity.php: bp_friends_friendship_accepted_activity() |
Add activity stream items when one members accepts another members request for virtual friendship. |
bp-friends/bp-friends-activity.php: bp_friends_delete_activity_on_user_delete() |
Deletes friendship activity items when a user is deleted. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::search_friends() |
Search the friends of a user by a search string. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::search_users() |
Search users. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::search_users_count() |
Get a count of users who match a search term. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::sort_by_name() |
Sort a list of user IDs by their display names. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::delete_all_for_user() |
Delete all friendships and friend notifications related to a user. |
bp-friends/classes/class-bp-friends-component.php: BP_Friends_Component::includes() |
Include bp-friends files. |
bp-friends/bp-friends-template.php: bp_friends_random_members() |
Pull up a group of random members, and display some profile data about them. |
class-buddypress.php: BuddyPress::autoload() |
Autoload classes. |
bp-friends/bp-friends-widgets.php: bp_friends_register_widgets() |
Register the friends widget. |
bp-friends/bp-friends-widgets.php: bp_core_ajax_widget_friends() |
Process AJAX pagination or filtering for the Friends widget. |
Changelog #Changelog
Version | Description |
---|---|
2.3.0 | Added $feature as a parameter. |
1.2.0 | Introduced. |