Output the content of the latest post on the current blog in the loop.
bp_blog_latest_post_content()
package | BuddyPress |
---|---|
since | 1.7.0 |
__
__n
_bp_activity_get_types_by_support
_bp_core_inject_bp_widget_css_class
_bp_core_moment_js_config_footer
_bp_enforce_bp_moderate_cap_for_admins
_bp_filter_current_theme_supports
_bp_get_user_meta_last_activity_warning
_bp_maybe_remove_redirect_canonical
_bp_maybe_remove_rel_canonical
_bp_mock_mailer
_bp_mock_mailer
_bp_nav_menu_sort
_bp_rehook_maybe_redirect_404
_bp_roles_init
_bp_strip_spans_from_title
_bp_update_user_meta_last_activity_warning
_bp_xprofile_signup_check_backcompat
_bp_xprofile_signup_do_backcompat
_bp_xprofile_signup_start_backcompat
_cleanup_header_comment
_deep_replace
_e
_install_and_load_buddypress
_load_buddypress
_make_email_clickable_cb
_make_url_clickable_cb
_make_web_ftp_clickable_cb
_wp_specialchars
_wp_timezone_choice_usort_callback
_wptexturize_pushpop_element
absint
add_blog_option
add_query_arg
apache_mod_loaded
attribute_escape
backpress_add_option
backpress_convert_object
backpress_delete_option
backpress_delete_transient
backpress_die
backpress_get_option
backpress_get_transient
backpress_gmt_strtotime
backpress_set_cookie
backpress_set_transient
backpress_update_option
backslashit
bp_account_was_activated
bp_action_variable
bp_action_variables
bp_actions
bp_activate_slug
bp_activation
bp_activation_page
bp_activities
bp_activities_member_rss_link
bp_activities_no_activity
bp_activities_title
bp_activity_action
bp_activity_action_allowed_html
bp_activity_action_delete_activity
bp_activity_action_favorites_feed
bp_activity_action_friends_feed
bp_activity_action_mark_favorite
bp_activity_action_mentions_feed
bp_activity_action_my_groups_feed
bp_activity_action_name
bp_activity_action_permalink_router
bp_activity_action_personal_feed
bp_activity_action_post_comment
bp_activity_action_post_update
bp_activity_action_remove_favorite
bp_activity_action_sitewide_feed
bp_activity_action_spam_activity
bp_activity_add
bp_activity_add_admin_menu
bp_activity_add_meta
bp_activity_add_notification_for_synced_blog_comment
bp_activity_add_user_favorite
bp_activity_adjust_mention_count
bp_activity_admin
bp_activity_admin_delete
bp_activity_admin_edit
bp_activity_admin_edit_hidden_metaboxes
bp_activity_admin_edit_metabox_itemids
bp_activity_admin_edit_metabox_link
bp_activity_admin_edit_metabox_status
bp_activity_admin_edit_metabox_type
bp_activity_admin_edit_metabox_userid
bp_activity_admin_get_activity_actions
bp_activity_admin_index
bp_activity_admin_load
bp_activity_admin_menu
bp_activity_admin_menu_order
bp_activity_admin_reply
bp_activity_admin_screen_options
bp_activity_akismet_delete_old_metadata
bp_activity_at_mention_add_notification
bp_activity_at_mention_delete_notification
bp_activity_at_message_notification
bp_activity_at_name_filter
bp_activity_at_name_filter_updates
bp_activity_at_name_send_emails
bp_activity_avatar
bp_activity_can_comment
bp_activity_can_comment_reply
bp_activity_can_favorite
bp_activity_catch_transition_post_type_status
bp_activity_check_blacklist_keys
bp_activity_check_disallowed_keys
bp_activity_check_exists_by_content
bp_activity_check_moderation_keys
bp_activity_clear_cache_for_activity
bp_activity_clear_cache_for_deleted_activity
bp_activity_clear_meta_cache_for_activity
bp_activity_clear_new_mentions
bp_activity_comment_cancel_url
bp_activity_comment_content
bp_activity_comment_count
bp_activity_comment_date_recorded
bp_activity_comment_date_recorded_raw
bp_activity_comment_delete_link
bp_activity_comment_depth
bp_activity_comment_embed
bp_activity_comment_embed_after_recurse
bp_activity_comment_form_action
bp_activity_comment_form_nojs_display
bp_activity_comment_id
bp_activity_comment_link
bp_activity_comment_name
bp_activity_comment_permalink
bp_activity_comment_reply_add_notification
bp_activity_comment_user_id
bp_activity_comment_user_link
bp_activity_comments
bp_activity_comments_user_avatars
bp_activity_content
bp_activity_content_body
bp_activity_count
bp_activity_create_summary
bp_activity_css_class
bp_activity_current_comment
bp_activity_date_recorded
bp_activity_delete
bp_activity_delete_by_activity_id
bp_activity_delete_by_content
bp_activity_delete_by_item_id
bp_activity_delete_children
bp_activity_delete_comment
bp_activity_delete_for_user_by_component
bp_activity_delete_link
bp_activity_delete_meta
bp_activity_delete_url
bp_activity_directory_permalink
bp_activity_do_heartbeat
bp_activity_do_mentions
bp_activity_embed
bp_activity_embed_add_inline_styles
bp_activity_embed_excerpt
bp_activity_embed_excerpt_onclick_location_filter
bp_activity_embed_excerpt_onclick_location_filter_callback
bp_activity_embed_has_activity
bp_activity_embed_media
bp_activity_favorite_link
bp_activity_feed_item_date
bp_activity_feed_item_description
bp_activity_feed_item_guid
bp_activity_feed_item_link
bp_activity_feed_item_title
bp_activity_filter_favorites_scope
bp_activity_filter_just_me_scope
bp_activity_filter_kses
bp_activity_filter_links
bp_activity_filter_mentions_scope
bp_activity_find_mentions
bp_activity_format_activity_action_activity_comment
bp_activity_format_activity_action_activity_update
bp_activity_format_activity_action_custom_post_type_comment
bp_activity_format_activity_action_custom_post_type_post
bp_activity_format_notifications
bp_activity_generate_action_string
bp_activity_generated_content_part
bp_activity_get
bp_activity_get_action
bp_activity_get_actions
bp_activity_get_actions_for_context
bp_activity_get_activity_id
bp_activity_get_comment_count
bp_activity_get_comment_depth
bp_activity_get_comments
bp_activity_get_comments_user_ids
bp_activity_get_current_context
bp_activity_get_embed_excerpt
bp_activity_get_excerpt_length
bp_activity_get_generated_content_part
bp_activity_get_js_dependencies
bp_activity_get_last_updated
bp_activity_get_meta
bp_activity_get_moderated_activity_types
bp_activity_get_permalink
bp_activity_get_post_type_tracking_args
bp_activity_get_post_types_tracking_args
bp_activity_get_public_message_button_args
bp_activity_get_sitewide
bp_activity_get_specific
bp_activity_get_types
bp_activity_get_types_list
bp_activity_get_user_favorites
bp_activity_get_user_mentionname
bp_activity_get_userid_from_mentionname
bp_activity_ham_all_user_data
bp_activity_has_content
bp_activity_has_directory
bp_activity_has_generated_content_part
bp_activity_has_more_items
bp_activity_heartbeat_last_recorded
bp_activity_heartbeat_strings
bp_activity_hide_user_activity
bp_activity_id
bp_activity_is_favorite
bp_activity_is_feed_enable
bp_activity_item_id
bp_activity_latest_update
bp_activity_load_more_link
bp_activity_make_nofollow_filter
bp_activity_make_nofollow_filter_callback
bp_activity_mark_as_ham
bp_activity_mark_as_spam
bp_activity_maybe_load_mentions_scripts
bp_activity_member_display_name
bp_activity_mentions_script
bp_activity_new_comment
bp_activity_new_comment_notification
bp_activity_new_comment_notification_helper
bp_activity_newest_class
bp_activity_object_name
bp_activity_oembed_dataparse
bp_activity_pagination_count
bp_activity_pagination_links
bp_activity_parent_content
bp_activity_parent_user_id
bp_activity_parse_embed_query
bp_activity_per_page
bp_activity_permalink_id
bp_activity_personal_data_exporter
bp_activity_post_form_action
bp_activity_post_type_comment
bp_activity_post_type_get_tracking_arg
bp_activity_post_type_publish
bp_activity_post_type_remove_comment
bp_activity_post_type_unpublish
bp_activity_post_type_update
bp_activity_post_update
bp_activity_recurse_comment_count
bp_activity_recurse_comments
bp_activity_recurse_comments_activity_ids
bp_activity_recurse_comments_user_ids
bp_activity_register_activity_actions
bp_activity_register_personal_data_exporter
bp_activity_register_user_favorites_meta
bp_activity_remove_all_user_data
bp_activity_remove_all_user_data_on_delete_user
bp_activity_remove_screen_notifications
bp_activity_remove_screen_notifications_for_non_mentions
bp_activity_remove_screen_notifications_single_activity_permalink
bp_activity_remove_user_favorite
bp_activity_render_latest_activities_block
bp_activity_reset_cache_incrementor
bp_activity_reset_my_new_mentions
bp_activity_root_slug
bp_activity_sanitize_user_favorites_meta
bp_activity_screen_favorites
bp_activity_screen_friends
bp_activity_screen_groups
bp_activity_screen_index
bp_activity_screen_mentions
bp_activity_screen_my_activity
bp_activity_screen_notification_settings
bp_activity_screen_single_activity_permalink
bp_activity_secondary_avatar
bp_activity_secondary_item_id
bp_activity_set_action
bp_activity_set_post_type_tracking_args
bp_activity_setup_akismet
bp_activity_setup_oembed
bp_activity_show_filters
bp_activity_sitewide_feed
bp_activity_slug
bp_activity_spam_all_user_data
bp_activity_thread_permalink
bp_activity_thumbnail_content_images
bp_activity_timestamp_class
bp_activity_total_favorites_for_user
bp_activity_transition_post_type_comment_status
bp_activity_truncate_entry
bp_activity_type
bp_activity_type_part
bp_activity_type_supports
bp_activity_types_list
bp_activity_unfavorite_link
bp_activity_update_mention_count_for_user
bp_activity_update_meta
bp_activity_update_meta_cache
bp_activity_update_reply_add_notification
bp_activity_user_can_delete
bp_activity_user_can_mark_spam
bp_activity_user_can_read
bp_activity_user_id
bp_activity_user_link
bp_add_caps
bp_add_cover_image_inline_css
bp_add_friend_button
bp_add_mentions_on_tinymce_init
bp_add_option
bp_add_options
bp_add_optout
bp_add_permastructs
bp_add_rewrite_rules
bp_add_rewrite_tags
bp_add_roles
bp_add_template_stack_locations
bp_admin
bp_admin_bar_appearance_menu
bp_admin_bar_comments_menu
bp_admin_bar_my_account_root
bp_admin_bar_my_sites_menu
bp_admin_bar_remove_wp_menus
bp_admin_bar_root_site
bp_admin_bar_updates_menu
bp_admin_custom_menu_order
bp_admin_display_directory_states
bp_admin_do_wp_nav_menu_meta_box
bp_admin_edit_available_addons_properties
bp_admin_email_add_codex_notice
bp_admin_email_maybe_add_translation_notice
bp_admin_enqueue_scripts
bp_admin_get_wp_nav_menu_items
bp_admin_head
bp_admin_init
bp_admin_invitations_table
bp_admin_list_table_current_bulk_action
bp_admin_menu
bp_admin_menu_order
bp_admin_notices
bp_admin_reinstall_emails
bp_admin_repair_blog_records
bp_admin_repair_blog_site_icons
bp_admin_repair_count_members
bp_admin_repair_friend_count
bp_admin_repair_group_count
bp_admin_repair_handler
bp_admin_repair_last_activity
bp_admin_repair_list
bp_admin_reset_slugs
bp_admin_sanitize_callback_blogforum_comments
bp_admin_sanitize_callback_community_visibility
bp_admin_sanitize_callback_force_buddybar
bp_admin_separator
bp_admin_set_screen_options
bp_admin_setting_callback_account_deletion
bp_admin_setting_callback_activity_akismet
bp_admin_setting_callback_admin_bar
bp_admin_setting_callback_avatar_uploads
bp_admin_setting_callback_blogforum_comments
bp_admin_setting_callback_community_visibility
bp_admin_setting_callback_cover_image_uploads
bp_admin_setting_callback_force_buddybar
bp_admin_setting_callback_group_activity_deletions
bp_admin_setting_callback_group_avatar_uploads
bp_admin_setting_callback_group_cover_image_uploads
bp_admin_setting_callback_group_creation
bp_admin_setting_callback_heartbeat
bp_admin_setting_callback_members_invitations
bp_admin_setting_callback_membership_requests
bp_admin_setting_callback_profile_sync
bp_admin_setting_callback_theme_package_id
bp_admin_tools_feedback
bp_admin_url
bp_admin_wp_nav_menu_meta_box
bp_admin_wp_nav_menu_restrict_items
bp_adminbar_account_menu
bp_adminbar_authors_menu
bp_adminbar_blogs_menu
bp_adminbar_login_menu
bp_adminbar_logo
bp_adminbar_notifications_menu
bp_adminbar_random_menu
bp_adminbar_thisblog_menu
bp_after_setup_theme
bp_ajax_action_is_registered
bp_ajax_get_suggestions
bp_ajax_querystring
bp_ajax_register_action
bp_allow_access_to_registration_pages
bp_allowed_themes
bp_alpha_sort_by_key
bp_are_previous_group_creation_steps_complete
bp_attachements_get_mime_type
bp_attachments_check_filetype
bp_attachments_cover_image_ajax_delete
bp_attachments_cover_image_ajax_upload
bp_attachments_cover_image_generate_file
bp_attachments_cover_image_is_edit
bp_attachments_cover_image_upload_dir
bp_attachments_cover_register_ajax_actions
bp_attachments_create_item_type
bp_attachments_current_user_can
bp_attachments_delete_file
bp_attachments_enqueue_scripts
bp_attachments_get_allowed_mimes
bp_attachments_get_allowed_types
bp_attachments_get_attachment
bp_attachments_get_cover_image_dimensions
bp_attachments_get_cover_image_settings
bp_attachments_get_file_object
bp_attachments_get_group_has_cover_image
bp_attachments_get_max_upload_file_size
bp_attachments_get_mime_type
bp_attachments_get_plupload_default_settings
bp_attachments_get_plupload_l10n
bp_attachments_get_template_part
bp_attachments_get_user_has_cover_image
bp_attachments_is_wp_version_supported
bp_attachments_json_response
bp_attachments_list_directory_files
bp_attachments_list_directory_files_recursively
bp_attachments_uploads_dir_get
bp_avatar_admin_step
bp_avatar_ajax_delete
bp_avatar_ajax_delete_previous_avatar
bp_avatar_ajax_recycle_previous_avatar
bp_avatar_ajax_set
bp_avatar_ajax_upload
bp_avatar_cropper
bp_avatar_delete_link
bp_avatar_get_avatars_history
bp_avatar_get_templates
bp_avatar_get_version
bp_avatar_handle_capture
bp_avatar_history_is_disabled
bp_avatar_is_front_edit
bp_avatar_register_ajax_actions
bp_avatar_template_check
bp_avatar_to_crop
bp_avatar_to_crop_src
bp_avatar_upload_form
bp_avatar_use_webcam
bp_backcompat_admin_tabs
bp_block_category
bp_block_init_category_filter
bp_block_init_editor_settings_filter
bp_block_render_login_form_block
bp_blocks_editor_settings
bp_blocks_get_login_widget_registration_link
bp_blocks_get_widget_block_classnames
bp_blocks_init
bp_blocks_preload_paths
bp_blog_avatar
bp_blog_backcompat_create_nav_item
bp_blog_class
bp_blog_create_button
bp_blog_create_nav_item
bp_blog_description
bp_blog_hidden_fields
bp_blog_id
bp_blog_last_active
bp_blog_latest_post
bp_blog_latest_post_content
bp_blog_latest_post_featured_image
bp_blog_latest_post_has_featured_image
bp_blog_latest_post_permalink
bp_blog_latest_post_title
bp_blog_name
bp_blog_permalink
bp_blog_signup_allowed
bp_blog_signup_enabled
bp_blogs
bp_blogs_activity_comment_permalink
bp_blogs_activity_comment_single_action
bp_blogs_activity_comment_single_permalink
bp_blogs_activity_get_site_link_meta
bp_blogs_add_blogmeta
bp_blogs_add_user_to_blog
bp_blogs_blog_tabs
bp_blogs_can_comment_reply
bp_blogs_catch_published_post
bp_blogs_catch_transition_post_status
bp_blogs_clear_blog_object_cache
bp_blogs_comment_sync_activity_comment
bp_blogs_comments_clauses_select_by_id
bp_blogs_comments_open
bp_blogs_confirm_blog_signup
bp_blogs_creation_location
bp_blogs_default_avatar
bp_blogs_delete_activity
bp_blogs_delete_activity_for_site
bp_blogs_delete_blogmeta
bp_blogs_delete_new_blog_activity_for_site
bp_blogs_delete_url_blogmeta
bp_blogs_directory_permalink
bp_blogs_directory_url
bp_blogs_disable_activity_commenting
bp_blogs_filter_meta_column_name
bp_blogs_format_activity_action_new_blog
bp_blogs_format_activity_action_new_blog_comment
bp_blogs_format_activity_action_new_blog_post
bp_blogs_format_clear_blog_cache
bp_blogs_get_all_blogs
bp_blogs_get_allowed_roles
bp_blogs_get_blogmeta
bp_blogs_get_blogs
bp_blogs_get_blogs_for_user
bp_blogs_get_profile_stats
bp_blogs_get_random_blogs
bp_blogs_get_signup_form_submitted_vars
bp_blogs_get_site_icon_url
bp_blogs_get_subdomain_base
bp_blogs_has_directory
bp_blogs_is_blog_hidden
bp_blogs_is_blog_recordable
bp_blogs_is_blog_trackable
bp_blogs_manage_comment
bp_blogs_maybe_add_user_to_blog
bp_blogs_new_blog_comment_query_backpat
bp_blogs_pagination_count
bp_blogs_pagination_links
bp_blogs_post_pre_publish
bp_blogs_post_type_comments_avoid_duplicates
bp_blogs_post_type_remove_comment
bp_blogs_prefetch_activity_object_data
bp_blogs_profile_stats
bp_blogs_publish_post_activity_meta
bp_blogs_record_activity
bp_blogs_record_activity_on_site_creation
bp_blogs_record_blog
bp_blogs_record_comment
bp_blogs_record_existing_blogs
bp_blogs_record_post
bp_blogs_redirect_to_random_blog
bp_blogs_register_activity_actions
bp_blogs_register_custom_site_icon_size
bp_blogs_register_post_tracking_args
bp_blogs_register_recent_posts_widget
bp_blogs_register_widgets
bp_blogs_remove_activity_meta_for_trashed_comments
bp_blogs_remove_associated_blog_comments
bp_blogs_remove_blog
bp_blogs_remove_blog_for_user
bp_blogs_remove_comment
bp_blogs_remove_data
bp_blogs_remove_data_for_blog
bp_blogs_remove_data_on_delete_user
bp_blogs_remove_post
bp_blogs_remove_user_from_blog
bp_blogs_render_recent_posts_block
bp_blogs_restore_data
bp_blogs_root_slug
bp_blogs_screen_create_a_blog
bp_blogs_screen_index
bp_blogs_screen_my_blogs
bp_blogs_setup_activity_loop_globals
bp_blogs_setup_comment_loop_globals_on_ajax
bp_blogs_signup_blog
bp_blogs_slug
bp_blogs_subdomain_base
bp_blogs_sync_activity_edit_to_post_comment
bp_blogs_sync_add_from_activity_comment
bp_blogs_sync_delete_from_activity_comment
bp_blogs_total_blogs
bp_blogs_total_blogs_for_user
bp_blogs_transition_activity_status
bp_blogs_update_blogmeta
bp_blogs_update_meta_cache
bp_blogs_update_option_blogdescription
bp_blogs_update_option_blogname
bp_blogs_update_option_close_comments_days_old
bp_blogs_update_option_close_comments_for_old_posts
bp_blogs_update_option_comment_moderation
bp_blogs_update_option_site_icon
bp_blogs_update_option_thread_comments
bp_blogs_update_option_thread_comments_depth
bp_blogs_update_post
bp_blogs_update_post_activity_meta
bp_blogs_validate_blog_form
bp_blogs_validate_blog_signup
bp_blogs_visit_blog_button
bp_buffer_template_part
bp_button
bp_catch_site_data
bp_check_theme_template_pack_dependency
bp_cleanup_friendship_activities
bp_clear_object_type_terms_cache
bp_comment_author_avatar
bp_comments_open
bp_comments_pre_query
bp_core_action_delete_user
bp_core_action_search_site
bp_core_action_set_spammer_status
bp_core_activate_signup
bp_core_activate_site_options
bp_core_activation_notice
bp_core_activation_signup_blog_notification
bp_core_activation_signup_user_notification
bp_core_add_admin_menu
bp_core_add_admin_menu_page
bp_core_add_admin_menu_styles
bp_core_add_admin_notice
bp_core_add_ajax_hook
bp_core_add_ajax_url_js
bp_core_add_contextual_help
bp_core_add_contextual_help_content
bp_core_add_cropper_inline_css
bp_core_add_cropper_inline_js
bp_core_add_global_group
bp_core_add_illegal_names
bp_core_add_jquery_cropper
bp_core_add_livestamp
bp_core_add_loading_lazy_attribute
bp_core_add_message
bp_core_add_meta_to_multisite_signups
bp_core_add_notification
bp_core_add_page_mappings
bp_core_add_root_component
bp_core_add_settings_nav
bp_core_add_validation_error_messages
bp_core_admin_available_tools_intro
bp_core_admin_available_tools_page
bp_core_admin_backpat_menu
bp_core_admin_backpat_page
bp_core_admin_bar
bp_core_admin_body_classes
bp_core_admin_components_options
bp_core_admin_components_settings
bp_core_admin_components_settings_handler
bp_core_admin_debug_information
bp_core_admin_debug_information_add_help_tab
bp_core_admin_delete_type
bp_core_admin_format_notifications
bp_core_admin_get_active_components_from_submitted_settings
bp_core_admin_get_components
bp_core_admin_get_directory_pages
bp_core_admin_get_static_pages
bp_core_admin_get_type_default_meta_values
bp_core_admin_hook
bp_core_admin_insert_type
bp_core_admin_is_running_php53_or_greater
bp_core_admin_maybe_disable_update_row_for_php53_requirement
bp_core_admin_maybe_remove_from_update_core
bp_core_admin_menu_init
bp_core_admin_notice_dismiss_callback
bp_core_admin_notice_repopulate_blogs_resume
bp_core_admin_php52_plugin_row
bp_core_admin_php53_admin_notice
bp_core_admin_remove_buddypress_from_update_transient
bp_core_admin_rewrites_load
bp_core_admin_rewrites_settings
bp_core_admin_settings
bp_core_admin_settings_save
bp_core_admin_slugs_options
bp_core_admin_slugs_settings
bp_core_admin_slugs_setup_handler
bp_core_admin_tabbed_screen_header
bp_core_admin_tabs
bp_core_admin_tools
bp_core_admin_update_type
bp_core_admin_user_manage_spammers
bp_core_admin_user_row_actions
bp_core_admin_user_spammed_js
bp_core_ajax_url
bp_core_ajax_widget_friends
bp_core_ajax_widget_members
bp_core_allow_default_theme
bp_core_avatar_default
bp_core_avatar_default_thumb
bp_core_avatar_dimension
bp_core_avatar_full_height
bp_core_avatar_full_width
bp_core_avatar_handle_crop
bp_core_avatar_handle_upload
bp_core_avatar_original_max_filesize
bp_core_avatar_original_max_width
bp_core_avatar_reset_query
bp_core_avatar_scripts
bp_core_avatar_thumb_height
bp_core_avatar_thumb_width
bp_core_avatar_upload_path
bp_core_avatar_url
bp_core_boot_spammer
bp_core_can_edit_settings
bp_core_catch_no_access
bp_core_catch_profile_uri
bp_core_check_avatar_size
bp_core_check_avatar_type
bp_core_check_avatar_upload
bp_core_check_for_blacklist
bp_core_check_for_disallowed_keys
bp_core_check_for_flood
bp_core_check_for_moderation
bp_core_check_notification_access
bp_core_clear_cache
bp_core_clear_directory_pages_cache_page_edit
bp_core_clear_directory_pages_cache_settings_edit
bp_core_clear_member_count_caches
bp_core_clear_root_options_cache
bp_core_clear_user_object_cache
bp_core_component_slug_from_root_slug
bp_core_components_subdirectory_reserved_names
bp_core_confirmation_js
bp_core_cover_image_scripts
bp_core_create_nav_link
bp_core_create_root_component_page
bp_core_create_subnav_link
bp_core_current_time
bp_core_current_user_ip
bp_core_current_user_ua
bp_core_define_slugs
bp_core_delete_account
bp_core_delete_all_notifications_by_type
bp_core_delete_avatar_on_delete_user
bp_core_delete_avatar_on_user_delete
bp_core_delete_existing_avatar
bp_core_delete_incremented_cache
bp_core_delete_notification
bp_core_delete_notifications_by_item_id
bp_core_delete_notifications_by_type
bp_core_delete_notifications_for_user_by_item_id
bp_core_delete_notifications_for_user_by_type
bp_core_delete_notifications_from_user
bp_core_deprecated_email_actions
bp_core_deprecated_email_filters
bp_core_dismiss_admin_notification
bp_core_do_network_admin
bp_core_email_from_address_filter
bp_core_email_from_name_filter
bp_core_enable_root_profiles
bp_core_enqueue_admin_bar_css
bp_core_enqueue_livestamp
bp_core_exclude_pages
bp_core_exclude_pages_from_nav_menu_admin
bp_core_extract_media_from_content
bp_core_fetch_avatar
bp_core_fetch_avatar_filter
bp_core_filter_blog_welcome_email
bp_core_filter_comments
bp_core_filter_edit_post_link
bp_core_filter_user_welcome_email
bp_core_filter_wp_query
bp_core_flush_illegal_names
bp_core_get_10_0_upgrade_email_schema
bp_core_get_11_0_upgrade_email_schema
bp_core_get_8_0_upgrade_email_schema
bp_core_get_active_components
bp_core_get_active_member_count
bp_core_get_admin_notifications
bp_core_get_admin_settings_tabs
bp_core_get_admin_tabs
bp_core_get_admin_tools_tabs
bp_core_get_all_posts_for_user
bp_core_get_allowed_avatar_mimes
bp_core_get_allowed_avatar_types
bp_core_get_avatar_data_url_filter
bp_core_get_component_from_directory_page_id
bp_core_get_component_search_query_arg
bp_core_get_components
bp_core_get_core_userdata
bp_core_get_directory_page_default_titles
bp_core_get_directory_page_id
bp_core_get_directory_page_ids
bp_core_get_directory_pages
bp_core_get_directory_pages_stati
bp_core_get_directory_post_type
bp_core_get_displayed_userid
bp_core_get_illegal_names
bp_core_get_incremented_cache
bp_core_get_incremented_cache_key
bp_core_get_incrementor
bp_core_get_iso8601_date
bp_core_get_js_dependencies
bp_core_get_last_activity
bp_core_get_minified_asset_suffix
bp_core_get_notification
bp_core_get_notifications_for_user
bp_core_get_optouts_notice
bp_core_get_packaged_component_ids
bp_core_get_query_parser
bp_core_get_random_member
bp_core_get_root_domain
bp_core_get_root_option
bp_core_get_root_options
bp_core_get_site_path
bp_core_get_suggestions
bp_core_get_table_prefix
bp_core_get_total_member_count
bp_core_get_unread_admin_notifications
bp_core_get_upload_dir
bp_core_get_user_displayname
bp_core_get_user_displaynames
bp_core_get_user_domain
bp_core_get_user_email
bp_core_get_userid
bp_core_get_userid_from_nicename
bp_core_get_userlink
bp_core_get_userlink_by_email
bp_core_get_userlink_by_username
bp_core_get_username
bp_core_get_users
bp_core_get_wp_profile
bp_core_include_directory_on_front
bp_core_install
bp_core_install_activity_streams
bp_core_install_blog_tracking
bp_core_install_emails
bp_core_install_extended_profiles
bp_core_install_friends
bp_core_install_groups
bp_core_install_invitations
bp_core_install_nonmember_opt_outs
bp_core_install_notifications
bp_core_install_private_messaging
bp_core_install_signups
bp_core_is_default_gravatar
bp_core_is_main_site
bp_core_is_multisite
bp_core_is_root_component
bp_core_is_user_deleted
bp_core_is_user_spammer
bp_core_iso8601_date
bp_core_load_admin_bar
bp_core_load_admin_bar_css
bp_core_load_buddybar_css
bp_core_load_buddypress_textdomain
bp_core_load_template
bp_core_login_filter_shake_codes
bp_core_login_redirect
bp_core_map_user_registration
bp_core_mark_user_ham_admin
bp_core_mark_user_spam_admin
bp_core_maybe_hook_new_subnav_screen_function
bp_core_maybe_install_signups
bp_core_maybe_unhook_legacy_widgets
bp_core_members_shortlink_redirector
bp_core_menu_highlight_nav_menu_item
bp_core_menu_highlight_parent_page
bp_core_modify_admin_menu_highlight
bp_core_moment_js_config
bp_core_new_nav_default
bp_core_new_nav_item
bp_core_new_subnav_item
bp_core_new_user_activity
bp_core_no_access
bp_core_no_access_wp_login_error
bp_core_number_format
bp_core_on_directory_page_delete
bp_core_optouts_admin
bp_core_optouts_admin_index
bp_core_optouts_admin_load
bp_core_optouts_admin_manage
bp_core_parse_args_array
bp_core_print_admin_notices
bp_core_print_generation_time
bp_core_process_spammer_status
bp_core_record_activity
bp_core_redirect
bp_core_referrer
bp_core_register_common_scripts
bp_core_register_common_styles
bp_core_register_deprecated_scripts
bp_core_register_deprecated_styles
bp_core_register_login_widget
bp_core_register_nav_screen_function
bp_core_register_subnav_screen_function
bp_core_register_widgets
bp_core_remove_data
bp_core_remove_data_on_delete_user
bp_core_remove_nav_item
bp_core_remove_subnav_item
bp_core_render_email_template
bp_core_render_message
bp_core_replace_tokens_in_text
bp_core_reset_incrementor
bp_core_reset_subnav_items
bp_core_retain_legacy_widgets
bp_core_screen_activation
bp_core_screen_delete_account
bp_core_screen_delete_account_content
bp_core_screen_delete_account_title
bp_core_screen_general_settings
bp_core_screen_general_settings_content
bp_core_screen_general_settings_title
bp_core_screen_notification_settings
bp_core_screen_notification_settings_content
bp_core_screen_notification_settings_title
bp_core_screen_signup
bp_core_set_ajax_uri_globals
bp_core_set_avatar_constants
bp_core_set_avatar_globals
bp_core_set_charset
bp_core_set_incremented_cache
bp_core_set_unique_directory_page_slug
bp_core_set_uri_globals
bp_core_setup_message
bp_core_setup_query_parser
bp_core_signup_avatar_upload_dir
bp_core_signup_blog
bp_core_signup_disable_inactive
bp_core_signup_send_validation_email
bp_core_signup_user
bp_core_sort_nav_items
bp_core_sort_subnav_items
bp_core_time_diff
bp_core_time_old
bp_core_time_since
bp_core_ucfirst
bp_core_update_directory_page_ids
bp_core_update_member_status
bp_core_upgrade_signups
bp_core_validate_blog_signup
bp_core_validate_email_address
bp_core_validate_user_signup
bp_core_wpsignup_redirect
bp_create_blog_link
bp_create_excerpt
bp_current_action
bp_current_component
bp_current_group_description
bp_current_group_directory_type_message
bp_current_group_id
bp_current_group_name
bp_current_group_slug
bp_current_item
bp_current_member_type_message
bp_current_profile_group_id
bp_current_signup_step
bp_current_theme_supports
bp_current_user_can
bp_current_user_can_moderate
bp_current_user_id
bp_custom_group_admin_tabs
bp_custom_group_boxes
bp_custom_group_fields
bp_custom_group_fields_editable
bp_custom_profile_boxes
bp_custom_profile_sidebar_boxes
bp_customize_register
bp_customizer_nav_menus_get_items
bp_customizer_nav_menus_set_item_types
bp_db_version
bp_db_version_raw
bp_deactivation
bp_delete_option
bp_delete_options
bp_delete_optout_by_id
bp_delete_rewrite_rules
bp_delete_site
bp_delete_site_hook
bp_delete_site_no_tables_drop
bp_delete_term
bp_delete_user_meta
bp_deregister_template_stack
bp_detect_theme_compat_with_current_theme
bp_die_legacy_ajax_callbacks
bp_dir_is_vert_layout
bp_directory_blogs_search_form
bp_directory_groups_search_form
bp_directory_members_search_form
bp_disable_account_deletion
bp_disable_avatar_uploads
bp_disable_blogforum_comments
bp_disable_cover_image_uploads
bp_disable_group_activity_deletions
bp_disable_group_avatar_uploads
bp_disable_group_cover_image_uploads
bp_disable_profile_sync
bp_displayed_user_avatar
bp_displayed_user_domain
bp_displayed_user_email
bp_displayed_user_front_template_part
bp_displayed_user_fullname
bp_displayed_user_get_front_template
bp_displayed_user_has_front_template
bp_displayed_user_id
bp_displayed_user_link
bp_displayed_user_mentionname
bp_displayed_user_url
bp_displayed_user_use_cover_image_header
bp_displayed_user_username
bp_do_404
bp_do_register_theme_directory
bp_do_theme_compat
bp_dtheme_add_blog_comments_js
bp_dtheme_deprecated
bp_dtheme_embed_read_more
bp_dtheme_fix_get_posts_on_activity_front
bp_dtheme_fix_the_posts_on_activity_front
bp_dtheme_page_on_front_template
bp_dtheme_page_on_front_update
bp_dtheme_wp_pages_filter
bp_edit_profile_button
bp_email_add_link_color_to_template
bp_email_custom_metaboxes
bp_email_customizer_hide_sections
bp_email_footer
bp_email_get_appearance_settings
bp_email_get_customizer_controls
bp_email_get_customizer_sections
bp_email_get_customizer_settings
bp_email_get_salt
bp_email_get_salutation
bp_email_get_schema
bp_email_get_template
bp_email_get_type
bp_email_get_type_schema
bp_email_get_unsubscribe_link
bp_email_get_unsubscribe_type_schema
bp_email_init_customizer
bp_email_plaintext_entity_decode
bp_email_plaintext_metabox
bp_email_post_type
bp_email_redirect_to_customizer
bp_email_set_default_headers
bp_email_set_default_tokens
bp_email_tax_type
bp_email_tax_type_metabox
bp_email_the_salutation
bp_email_unsubscribe_handler
bp_embed_activity_cache
bp_embed_activity_save_cache
bp_embed_init
bp_embed_message_cache
bp_embed_message_save_cache
bp_enqueue_block_editor_assets
bp_enqueue_community_scripts
bp_enqueue_context_scripts
bp_enqueue_embed_scripts
bp_enqueue_scripts
bp_esc_like
bp_esc_sql_order
bp_exists
bp_field_css_class
bp_field_has_data
bp_field_has_public_data
bp_filter_metaid_column_name
bp_filter_rest_request_blog_url
bp_force_buddybar
bp_form_field_attributes
bp_form_option
bp_format_time
bp_forums_parent_forum_id
bp_friend_accept_request_link
bp_friend_friendship_id
bp_friend_get_total_requests_count
bp_friend_reject_request_link
bp_friend_search_form
bp_friend_total_requests_count
bp_friends_add_friendship_accepted_notification
bp_friends_blocks_add_script_data
bp_friends_clear_bp_friends_friendships_cache
bp_friends_clear_bp_friends_friendships_cache_remove
bp_friends_clear_request_cache
bp_friends_clear_request_cache_on_remove
bp_friends_clear_request_cache_on_save
bp_friends_delete_activity_on_friendship_delete
bp_friends_delete_activity_on_user_delete
bp_friends_delete_cached_friendships_on_friendship_save
bp_friends_filter_activity_just_me_scope
bp_friends_filter_activity_scope
bp_friends_filter_title
bp_friends_filter_user_query_populate_extras
bp_friends_format_activity_action_friendship_accepted
bp_friends_format_activity_action_friendship_created
bp_friends_friendship_accepted_activity
bp_friends_friendship_requested_notification
bp_friends_get_profile_stats
bp_friends_header_tabs
bp_friends_mark_friendship_accepted_notifications_by_type
bp_friends_mark_friendship_rejected_notifications_by_item_id
bp_friends_mark_friendship_request_notifications_by_type
bp_friends_mark_friendship_withdrawn_notifications_by_item_id
bp_friends_pending_received_requests_personal_data_exporter
bp_friends_pending_sent_requests_personal_data_exporter
bp_friends_personal_data_exporter
bp_friends_prefetch_activity_object_data
bp_friends_prime_mentions_results
bp_friends_profile_stats
bp_friends_random_friends
bp_friends_random_members
bp_friends_register_friends_widget
bp_friends_register_personal_data_exporters
bp_friends_register_scripts
bp_friends_register_widgets
bp_friends_remove_data_on_delete_user
bp_friends_remove_notifications_data
bp_friends_render_friends_block
bp_friends_root_slug
bp_friends_slug
bp_generate_rewrite_rules
bp_get_activate_root_slug
bp_get_activate_slug
bp_get_activation_page
bp_get_activities_member_rss_link
bp_get_activities_no_activity
bp_get_activities_title
bp_get_activity_action
bp_get_activity_action_name
bp_get_activity_avatar
bp_get_activity_comment_cancel_url
bp_get_activity_comment_content
bp_get_activity_comment_date_recorded
bp_get_activity_comment_date_recorded_raw
bp_get_activity_comment_delete_link
bp_get_activity_comment_form_action
bp_get_activity_comment_form_nojs_display
bp_get_activity_comment_id
bp_get_activity_comment_link
bp_get_activity_comment_name
bp_get_activity_comment_permalink
bp_get_activity_comment_user_id
bp_get_activity_comment_user_link
bp_get_activity_content
bp_get_activity_content_body
bp_get_activity_count
bp_get_activity_css_class
bp_get_activity_date_recorded
bp_get_activity_delete_link
bp_get_activity_delete_url
bp_get_activity_directory_permalink
bp_get_activity_favorite_link
bp_get_activity_feed_item_date
bp_get_activity_feed_item_description
bp_get_activity_feed_item_guid
bp_get_activity_feed_item_link
bp_get_activity_feed_item_title
bp_get_activity_filter_links
bp_get_activity_id
bp_get_activity_is_favorite
bp_get_activity_item_id
bp_get_activity_latest_update
bp_get_activity_load_more_link
bp_get_activity_member_display_name
bp_get_activity_object_name
bp_get_activity_pagination_count
bp_get_activity_pagination_links
bp_get_activity_parent_content
bp_get_activity_parent_user_id
bp_get_activity_per_page
bp_get_activity_permalink_id
bp_get_activity_post_form_action
bp_get_activity_root_slug
bp_get_activity_secondary_avatar
bp_get_activity_secondary_item_id
bp_get_activity_show_filters
bp_get_activity_slug
bp_get_activity_thread_permalink
bp_get_activity_type
bp_get_activity_unfavorite_link
bp_get_activity_user_id
bp_get_activity_user_link
bp_get_add_friend_button
bp_get_add_friend_button_args
bp_get_admin_bar_pref
bp_get_admin_url
bp_get_allowedtags
bp_get_asset_template_part
bp_get_avatar_admin_step
bp_get_avatar_delete_link
bp_get_avatar_to_crop
bp_get_avatar_to_crop_src
bp_get_blog_avatar
bp_get_blog_class
bp_get_blog_create_button
bp_get_blog_create_nav_item
bp_get_blog_description
bp_get_blog_id
bp_get_blog_last_active
bp_get_blog_latest_post
bp_get_blog_latest_post_content
bp_get_blog_latest_post_featured_image
bp_get_blog_latest_post_permalink
bp_get_blog_latest_post_title
bp_get_blog_name
bp_get_blog_permalink
bp_get_blog_signup_allowed
bp_get_blogs_directory_permalink
bp_get_blogs_directory_url
bp_get_blogs_pagination_count
bp_get_blogs_pagination_links
bp_get_blogs_root_slug
bp_get_blogs_slug
bp_get_blogs_visit_blog_button
bp_get_blogs_visit_blog_button_args
bp_get_button
bp_get_canonical_url
bp_get_caps_for_role
bp_get_community_caps
bp_get_community_visibility
bp_get_component_navigations
bp_get_current_activation_key
bp_get_current_blog_roles
bp_get_current_group_description
bp_get_current_group_directory_type
bp_get_current_group_directory_type_message
bp_get_current_group_id
bp_get_current_group_name
bp_get_current_group_slug
bp_get_current_member_type
bp_get_current_member_type_message
bp_get_current_profile_group_id
bp_get_current_signup_step
bp_get_custom_translation_file
bp_get_db_version
bp_get_db_version_raw
bp_get_default_options
bp_get_default_taxonomies
bp_get_deprecated_functions_versions
bp_get_directory_title
bp_get_displayed_user
bp_get_displayed_user_avatar
bp_get_displayed_user_email
bp_get_displayed_user_fullname
bp_get_displayed_user_link
bp_get_displayed_user_mentionname
bp_get_displayed_user_nav
bp_get_displayed_user_username
bp_get_domain
bp_get_dynamic_template_part
bp_get_email
bp_get_email_post_type
bp_get_email_post_type_labels
bp_get_email_post_type_supports
bp_get_email_subject
bp_get_email_tax_type
bp_get_email_tax_type_args
bp_get_email_tax_type_labels
bp_get_field_css_class
bp_get_form_field_attributes
bp_get_form_option
bp_get_friend_accept_request_link
bp_get_friend_friendship_id
bp_get_friend_ids
bp_get_friend_reject_request_link
bp_get_friends_root_slug
bp_get_friends_slug
bp_get_friendship_requests
bp_get_fullname_field_id_for_update
bp_get_group
bp_get_group_accept_invite_link
bp_get_group_activity_feed_link
bp_get_group_admin_form_action
bp_get_group_admin_permalink
bp_get_group_all_members_permalink
bp_get_group_avatar
bp_get_group_avatar_delete_link
bp_get_group_avatar_mini
bp_get_group_avatar_thumb
bp_get_group_avatar_url
bp_get_group_by
bp_get_group_class
bp_get_group_cover_url
bp_get_group_create_button
bp_get_group_create_nav_item
bp_get_group_creation_form_action
bp_get_group_creation_previous_link
bp_get_group_creator_avatar
bp_get_group_creator_id
bp_get_group_creator_permalink
bp_get_group_creator_username
bp_get_group_current_admin_tab
bp_get_group_current_avatar
bp_get_group_date_created
bp_get_group_description
bp_get_group_description_editable
bp_get_group_description_excerpt
bp_get_group_extension_screens
bp_get_group_form_action
bp_get_group_forum_permalink
bp_get_group_has_avatar
bp_get_group_id
bp_get_group_invite_item_id
bp_get_group_invite_pagination_count
bp_get_group_invite_pagination_links
bp_get_group_invite_user_avatar
bp_get_group_invite_user_last_active
bp_get_group_invite_user_link
bp_get_group_invite_user_remove_invite_url
bp_get_group_is_public
bp_get_group_join_button
bp_get_group_last_active
bp_get_group_leave_confirm_link
bp_get_group_leave_reject_link
bp_get_group_link
bp_get_group_manage_url
bp_get_group_member_admin_pagination
bp_get_group_member_avatar
bp_get_group_member_avatar_mini
bp_get_group_member_avatar_thumb
bp_get_group_member_ban_link
bp_get_group_member_count
bp_get_group_member_demote_link
bp_get_group_member_domain
bp_get_group_member_id
bp_get_group_member_is_banned
bp_get_group_member_is_friend
bp_get_group_member_joined_since
bp_get_group_member_link
bp_get_group_member_name
bp_get_group_member_pagination
bp_get_group_member_pagination_count
bp_get_group_member_promote_admin_link
bp_get_group_member_promote_mod_link
bp_get_group_member_remove_link
bp_get_group_member_unban_link
bp_get_group_member_url
bp_get_group_name
bp_get_group_new_topic_button
bp_get_group_pag_id
bp_get_group_permalink
bp_get_group_public_status
bp_get_group_reject_invite_link
bp_get_group_request_accept_link
bp_get_group_request_reject_link
bp_get_group_request_user_link
bp_get_group_requests_pagination_count
bp_get_group_requests_pagination_links
bp_get_group_restricted_screens
bp_get_group_screens
bp_get_group_send_invite_form_action
bp_get_group_slug
bp_get_group_status
bp_get_group_total_for_member
bp_get_group_total_members
bp_get_group_type
bp_get_group_type_directory_link
bp_get_group_type_directory_permalink
bp_get_group_type_list
bp_get_group_type_metadata_schema
bp_get_group_type_tax_args
bp_get_group_type_tax_labels
bp_get_group_type_tax_name
bp_get_group_types_registered_by_code
bp_get_group_url
bp_get_groups_action_link
bp_get_groups_current_create_step
bp_get_groups_directory_permalink
bp_get_groups_directory_url
bp_get_groups_group_type_base
bp_get_groups_pagination_count
bp_get_groups_pagination_links
bp_get_groups_root_slug
bp_get_groups_slug
bp_get_initial_version
bp_get_last_activity
bp_get_loggedin_user_avatar
bp_get_loggedin_user_fullname
bp_get_loggedin_user_link
bp_get_loggedin_user_nav
bp_get_loggedin_user_username
bp_get_maintenance_mode
bp_get_major_version
bp_get_major_wp_version
bp_get_max_thread_recipients_to_list
bp_get_member_activity_feed_link
bp_get_member_avatar
bp_get_member_class
bp_get_member_last_active
bp_get_member_latest_update
bp_get_member_link
bp_get_member_name
bp_get_member_permalink
bp_get_member_profile_data
bp_get_member_registered
bp_get_member_total_friend_count
bp_get_member_type
bp_get_member_type_directory_link
bp_get_member_type_directory_permalink
bp_get_member_type_list
bp_get_member_type_metadata_schema
bp_get_member_type_object
bp_get_member_type_tax_args
bp_get_member_type_tax_labels
bp_get_member_type_tax_name
bp_get_member_types
bp_get_member_types_registered_by_code
bp_get_member_user_email
bp_get_member_user_id
bp_get_member_user_login
bp_get_member_user_nicename
bp_get_members_component_link
bp_get_members_directory_permalink
bp_get_members_invitation_from_request
bp_get_members_invitations_allowed
bp_get_members_invitations_list_invites_permalink
bp_get_members_invitations_pagination_count
bp_get_members_invitations_pagination_links
bp_get_members_invitations_send_invites_permalink
bp_get_members_invitations_slug
bp_get_members_member_type_base
bp_get_members_pagination_count
bp_get_members_pagination_links
bp_get_members_root_slug
bp_get_members_slug
bp_get_membership_requests_required
bp_get_mentioned_user_display_name
bp_get_message_activate_deactivate_link
bp_get_message_activate_deactivate_text
bp_get_message_css_class
bp_get_message_get_recipient_usernames
bp_get_message_is_active_notice
bp_get_message_loading_image_src
bp_get_message_notice_delete_link
bp_get_message_notice_dismiss_link
bp_get_message_notice_id
bp_get_message_notice_post_date
bp_get_message_notice_subject
bp_get_message_notice_text
bp_get_message_thread_avatar
bp_get_message_thread_content
bp_get_message_thread_delete_link
bp_get_message_thread_excerpt
bp_get_message_thread_from
bp_get_message_thread_id
bp_get_message_thread_last_post_date
bp_get_message_thread_last_post_date_raw
bp_get_message_thread_subject
bp_get_message_thread_to
bp_get_message_thread_total_and_unread_count
bp_get_message_thread_total_count
bp_get_message_thread_unread_count
bp_get_message_thread_view_link
bp_get_messages_content_value
bp_get_messages_form_action
bp_get_messages_pagination
bp_get_messages_slug
bp_get_messages_starred_slug
bp_get_messages_subject_value
bp_get_messages_username_value
bp_get_moderator_role
bp_get_name_from_root_slug
bp_get_nav_menu_items
bp_get_new_group_avatar
bp_get_new_group_description
bp_get_new_group_enable_forum
bp_get_new_group_id
bp_get_new_group_invite_friend_list
bp_get_new_group_name
bp_get_new_group_status
bp_get_non_cached_ids
bp_get_notifications_pagination_count
bp_get_notifications_pagination_links
bp_get_notifications_permalink
bp_get_notifications_read_permalink
bp_get_notifications_slug
bp_get_notifications_unread_permalink
bp_get_object_terms
bp_get_objects_in_term
bp_get_option
bp_get_options_avatar
bp_get_options_nav
bp_get_options_title
bp_get_optouts
bp_get_page_title
bp_get_participant_role
bp_get_plugin_sidebar
bp_get_post_type_link
bp_get_post_type_site_id
bp_get_potential_friend_id
bp_get_profile_field_data
bp_get_profile_group_name
bp_get_profile_group_tabs
bp_get_profile_header
bp_get_profile_last_updated
bp_get_profile_slug
bp_get_query_template
bp_get_referer_path
bp_get_request
bp_get_requested_url
bp_get_root_blog_id
bp_get_root_domain
bp_get_root_slug
bp_get_root_url
bp_get_search_default_text
bp_get_search_input_name
bp_get_search_placeholder
bp_get_search_slug
bp_get_send_message_button
bp_get_send_message_button_args
bp_get_send_private_message_link
bp_get_send_public_message_button
bp_get_send_public_message_link
bp_get_settings_root_slug
bp_get_settings_slug
bp_get_signup_allowed
bp_get_signup_avatar
bp_get_signup_avatar_dir_value
bp_get_signup_blog_privacy_value
bp_get_signup_blog_title_value
bp_get_signup_blog_url_value
bp_get_signup_email_value
bp_get_signup_page
bp_get_signup_root_slug
bp_get_signup_slug
bp_get_signup_username_value
bp_get_signup_with_blog_value
bp_get_site_name
bp_get_sitewide_activity_feed_link
bp_get_taxonomy_common_args
bp_get_taxonomy_common_labels
bp_get_taxonomy_term_site_id
bp_get_taxonomy_types
bp_get_template_locations
bp_get_template_part
bp_get_template_stack
bp_get_term_by
bp_get_terms
bp_get_the_body_class
bp_get_the_members_invitation_action_links
bp_get_the_members_invitation_delete_link
bp_get_the_members_invitation_property
bp_get_the_members_invitation_resend_link
bp_get_the_members_invitations_delete_url
bp_get_the_members_invitations_resend_url
bp_get_the_message_star_action_link
bp_get_the_message_thread_mark_read_url
bp_get_the_message_thread_mark_unread_url
bp_get_the_notification_action_links
bp_get_the_notification_component_action
bp_get_the_notification_component_name
bp_get_the_notification_date_notified
bp_get_the_notification_delete_link
bp_get_the_notification_delete_url
bp_get_the_notification_description
bp_get_the_notification_id
bp_get_the_notification_item_id
bp_get_the_notification_mark_link
bp_get_the_notification_mark_read_link
bp_get_the_notification_mark_read_url
bp_get_the_notification_mark_unread_link
bp_get_the_notification_mark_unread_url
bp_get_the_notification_secondary_item_id
bp_get_the_notification_time_since
bp_get_the_post_class
bp_get_the_profile_field_description
bp_get_the_profile_field_edit_value
bp_get_the_profile_field_errors_action
bp_get_the_profile_field_id
bp_get_the_profile_field_ids
bp_get_the_profile_field_input_name
bp_get_the_profile_field_is_required
bp_get_the_profile_field_name
bp_get_the_profile_field_options
bp_get_the_profile_field_required_label
bp_get_the_profile_field_type
bp_get_the_profile_field_value
bp_get_the_profile_field_visibility_level
bp_get_the_profile_field_visibility_level_label
bp_get_the_profile_group_description
bp_get_the_profile_group_edit_form_action
bp_get_the_profile_group_field_ids
bp_get_the_profile_group_id
bp_get_the_profile_group_name
bp_get_the_profile_group_slug
bp_get_the_profile_signup_field_input_name
bp_get_the_thread_delete_link
bp_get_the_thread_exit_link
bp_get_the_thread_id
bp_get_the_thread_message_alt_class
bp_get_the_thread_message_content
bp_get_the_thread_message_css_class
bp_get_the_thread_message_date_sent
bp_get_the_thread_message_id
bp_get_the_thread_message_sender_avatar_thumb
bp_get_the_thread_message_sender_id
bp_get_the_thread_message_sender_link
bp_get_the_thread_message_sender_name
bp_get_the_thread_message_time_since
bp_get_the_thread_recipients
bp_get_the_thread_subject
bp_get_theme_compat_dir
bp_get_theme_compat_feature
bp_get_theme_compat_id
bp_get_theme_compat_name
bp_get_theme_compat_templates
bp_get_theme_compat_url
bp_get_theme_compat_version
bp_get_theme_package_id
bp_get_thread_messages_order
bp_get_thread_recipients_count
bp_get_thread_recipients_list
bp_get_title_parts
bp_get_total_blog_count
bp_get_total_blog_count_for_user
bp_get_total_favorite_count_for_user
bp_get_total_friend_count
bp_get_total_group_count
bp_get_total_group_count_for_user
bp_get_total_member_count
bp_get_total_mention_count_for_user
bp_get_total_site_member_count
bp_get_total_unread_messages_count
bp_get_type_metadata_schema
bp_get_user_firstname
bp_get_user_groups
bp_get_user_has_avatar
bp_get_user_last_activity
bp_get_user_meta
bp_get_user_meta_key
bp_get_version
bp_get_widget_max_count_limit
bp_group_accept_invite_link
bp_group_activity_feed_link
bp_group_admin_form_action
bp_group_admin_ids
bp_group_admin_memberlist
bp_group_admin_permalink
bp_group_admin_tabs
bp_group_admin_tabs_backcompat
bp_group_all_members_permalink
bp_group_avatar
bp_group_avatar_delete_link
bp_group_avatar_edit_form
bp_group_avatar_mini
bp_group_avatar_thumb
bp_group_avatar_url
bp_group_backcompat_create_nav_item
bp_group_class
bp_group_create_button
bp_group_create_nav_item
bp_group_creation_form_action
bp_group_creation_previous_link
bp_group_creation_stage_title
bp_group_creation_tabs
bp_group_creator_avatar
bp_group_creator_id
bp_group_creator_permalink
bp_group_creator_username
bp_group_current_admin_tab
bp_group_current_avatar
bp_group_date_created
bp_group_description
bp_group_description_editable
bp_group_description_excerpt
bp_group_form_action
bp_group_forum_permalink
bp_group_get_invite_status
bp_group_has_invites
bp_group_has_members
bp_group_has_membership_requests
bp_group_has_moderators
bp_group_has_requested_membership
bp_group_hidden_fields
bp_group_id
bp_group_invite_item_id
bp_group_invite_pagination_count
bp_group_invite_pagination_links
bp_group_invite_user_avatar
bp_group_invite_user_last_active
bp_group_invite_user_link
bp_group_invite_user_remove_invite_url
bp_group_invites
bp_group_is_activity_permalink
bp_group_is_admin
bp_group_is_forum_enabled
bp_group_is_invited
bp_group_is_member
bp_group_is_mod
bp_group_is_public
bp_group_is_user_banned
bp_group_is_visible
bp_group_join_button
bp_group_last_active
bp_group_leave_confirm_link
bp_group_leave_reject_link
bp_group_link
bp_group_list_admins
bp_group_list_mods
bp_group_manage_url
bp_group_member_admin_pagination
bp_group_member_avatar
bp_group_member_avatar_mini
bp_group_member_avatar_thumb
bp_group_member_ban_link
bp_group_member_count
bp_group_member_css_class
bp_group_member_demote_link
bp_group_member_domain
bp_group_member_id
bp_group_member_is_banned
bp_group_member_is_friend
bp_group_member_joined_since
bp_group_member_link
bp_group_member_name
bp_group_member_needs_pagination
bp_group_member_pagination
bp_group_member_pagination_count
bp_group_member_promote_admin_link
bp_group_member_promote_mod_link
bp_group_member_remove_link
bp_group_member_unban_link
bp_group_member_url
bp_group_members
bp_group_membership_requests
bp_group_mod_ids
bp_group_mod_memberlist
bp_group_name
bp_group_new_topic_button
bp_group_pag_id
bp_group_permalink
bp_group_public_status
bp_group_reject_invite_link
bp_group_request_accept_link
bp_group_request_comment
bp_group_request_reject_link
bp_group_request_time_since_requested
bp_group_request_user_avatar_thumb
bp_group_request_user_link
bp_group_requests_pagination_count
bp_group_requests_pagination_links
bp_group_search_form
bp_group_send_invite_form_action
bp_group_show_forum_setting
bp_group_show_invite_status_setting
bp_group_show_no_groups_message
bp_group_show_status_setting
bp_group_site_admin_network_admin_redirect
bp_group_slug
bp_group_status
bp_group_status_message
bp_group_the_invite
bp_group_the_member
bp_group_the_membership_request
bp_group_total_for_member
bp_group_total_members
bp_group_type
bp_group_type_directory_link
bp_group_type_directory_permalink
bp_group_type_list
bp_group_type_tax_name
bp_group_url
bp_group_use_cover_image_header
bp_groups
bp_groups_accept_invite_mark_notifications
bp_groups_accept_request_mark_notifications
bp_groups_action_link
bp_groups_activity_feed
bp_groups_add_admin_menu
bp_groups_admin
bp_groups_admin_autocomplete_handler
bp_groups_admin_create_pagination_links
bp_groups_admin_delete
bp_groups_admin_edit
bp_groups_admin_edit_metabox_add_new_members
bp_groups_admin_edit_metabox_group_type
bp_groups_admin_edit_metabox_members
bp_groups_admin_edit_metabox_settings
bp_groups_admin_edit_metabox_status
bp_groups_admin_get_usernames_from_ids
bp_groups_admin_groups_type_change_notice
bp_groups_admin_index
bp_groups_admin_load
bp_groups_admin_menu_order
bp_groups_admin_process_group_type_bulk_changes
bp_groups_admin_screen_options
bp_groups_admin_types_menu
bp_groups_adminbar_admin_menu
bp_groups_auto_join
bp_groups_blocks_add_script_data
bp_groups_clear_group_administrator_cache_on_member_delete
bp_groups_clear_group_creator_cache
bp_groups_clear_group_members_caches
bp_groups_clear_invite_count_for_user
bp_groups_clear_invite_count_on_send
bp_groups_clear_invite_count_on_uninvite
bp_groups_clear_user_group_cache_on_invitation_change
bp_groups_clear_user_group_cache_on_invitation_save
bp_groups_clear_user_group_cache_on_membership_save
bp_groups_clear_user_group_cache_on_other_events
bp_groups_current_create_step
bp_groups_default_avatar
bp_groups_defer_group_members_count
bp_groups_delete_group_cache
bp_groups_delete_group_cache_on_metadata_change
bp_groups_delete_group_delete_all_activity
bp_groups_delete_group_delete_all_notifications
bp_groups_delete_promotion_notifications
bp_groups_directory_permalink
bp_groups_directory_url
bp_groups_disable_at_mention_notification_for_non_public_groups
bp_groups_filter_activity_can_comment
bp_groups_filter_activity_can_comment_reply
bp_groups_filter_activity_favorites_scope
bp_groups_filter_activity_scope
bp_groups_filter_activity_user_can_delete
bp_groups_filter_kses
bp_groups_filter_title
bp_groups_format_activity_action_created_group
bp_groups_format_activity_action_group_activity_update
bp_groups_format_activity_action_group_details_updated
bp_groups_format_activity_action_joined_group
bp_groups_front_template_part
bp_groups_get_activity_group
bp_groups_get_create_url
bp_groups_get_front_template
bp_groups_get_group_join_button_args
bp_groups_get_group_manage_members_script_data
bp_groups_get_group_roles
bp_groups_get_group_type
bp_groups_get_group_type_object
bp_groups_get_group_types
bp_groups_get_path_chunks
bp_groups_get_profile_stats
bp_groups_group_access_protection
bp_groups_group_admin_menu
bp_groups_group_details_updated_add_activity
bp_groups_group_type_base
bp_groups_has_directory
bp_groups_has_group_type
bp_groups_has_manage_group_members_templates
bp_groups_header_tabs
bp_groups_leave_group_delete_recent_activity
bp_groups_manage_group_members_interface
bp_groups_maybe_load_mentions_scripts
bp_groups_members_filter
bp_groups_members_template_part
bp_groups_membership_accepted_add_activity
bp_groups_memberships_personal_data_exporter
bp_groups_migrate_invitations
bp_groups_pagination_count
bp_groups_pagination_links
bp_groups_pending_received_invitations_personal_data_exporter
bp_groups_pending_requests_personal_data_exporter
bp_groups_pending_sent_invitations_personal_data_exporter
bp_groups_prefetch_activity_object_data
bp_groups_print_manage_group_members_placeholders
bp_groups_print_manage_group_members_templates
bp_groups_process_group_type_update
bp_groups_profile_stats
bp_groups_register_group_type
bp_groups_register_group_type_taxonomy
bp_groups_register_group_types
bp_groups_register_groups_widget
bp_groups_register_personal_data_exporters
bp_groups_register_scripts
bp_groups_register_widget_block_scripts
bp_groups_remove_data_for_user_notifications
bp_groups_remove_data_for_user_on_delete_user
bp_groups_remove_edit_page_menu
bp_groups_remove_group_type
bp_groups_render_dynamic_groups_block
bp_groups_render_group_block
bp_groups_render_groups_block
bp_groups_reset_cache_incrementor
bp_groups_reset_cache_incrementor_on_group_term_change
bp_groups_reset_cache_incrementor_on_group_term_remove
bp_groups_root_slug
bp_groups_screen_group_admin_requests_mark_notifications
bp_groups_screen_invites_mark_notifications
bp_groups_screen_my_groups_mark_notifications
bp_groups_set_group_type
bp_groups_slug
bp_groups_type_admin_type_exists
bp_groups_type_admin_updated_messages
bp_groups_uninvite_user_delete_group_invite_notification
bp_groups_update_group_members_count
bp_groups_update_meta_cache
bp_groups_update_orphaned_groups_on_group_delete
bp_groups_user_can_access_current_group
bp_groups_user_can_filter
bp_groups_user_can_send_invites
bp_has_activities
bp_has_blogs
bp_has_custom_activation_page
bp_has_custom_signup_page
bp_has_friends_to_invite
bp_has_groups
bp_has_member_type
bp_has_members
bp_has_members_invitations
bp_has_message_threads
bp_has_notifications
bp_has_options_avatar
bp_has_pretty_urls
bp_has_profile
bp_head
bp_hide_loggedout_adminbar
bp_include
bp_init
bp_init_group_extensions
bp_initial_version
bp_insert_activity_meta
bp_insert_group_types_registered_by_code
bp_insert_member_types_registered_by_code
bp_insert_site
bp_insert_site_hook
bp_insert_term
bp_invitations_reset_cache_incrementor
bp_is_action_variable
bp_is_activation
bp_is_activation_page
bp_is_active
bp_is_activity_component
bp_is_activity_directory
bp_is_activity_front_page
bp_is_activity_heartbeat_active
bp_is_activity_permalink
bp_is_admin
bp_is_akismet_active
bp_is_blog_page
bp_is_blogs_component
bp_is_blogs_directory
bp_is_change_avatar
bp_is_classic
bp_is_component_front_page
bp_is_create_blog
bp_is_current_action
bp_is_current_component
bp_is_current_component_core
bp_is_current_item
bp_is_deactivation
bp_is_directory
bp_is_directory_homepage
bp_is_email_customizer
bp_is_first_group_creation_step
bp_is_forums_component
bp_is_friend
bp_is_friend_requests
bp_is_friends_component
bp_is_front_page
bp_is_get_request
bp_is_group
bp_is_group_activity
bp_is_group_admin_page
bp_is_group_admin_screen
bp_is_group_create
bp_is_group_creation_step
bp_is_group_creation_step_complete
bp_is_group_creator
bp_is_group_custom_front
bp_is_group_forum
bp_is_group_forum_topic
bp_is_group_forum_topic_edit
bp_is_group_forums_active
bp_is_group_home
bp_is_group_invites
bp_is_group_leave
bp_is_group_members
bp_is_group_membership_request
bp_is_group_single
bp_is_groups_component
bp_is_groups_directory
bp_is_home
bp_is_install
bp_is_item_admin
bp_is_item_mod
bp_is_large_install
bp_is_last_group_creation_step
bp_is_member
bp_is_members_component
bp_is_members_directory
bp_is_members_invitations_screen
bp_is_messages_component
bp_is_messages_compose_screen
bp_is_messages_conversation
bp_is_messages_inbox
bp_is_messages_sentbox
bp_is_multiblog_mode
bp_is_my_profile
bp_is_network_activated
bp_is_notices
bp_is_notifications_component
bp_is_page
bp_is_post_request
bp_is_profile_component
bp_is_profile_edit
bp_is_register_page
bp_is_root_blog
bp_is_root_component
bp_is_running_from_src_subdirectory
bp_is_running_wp
bp_is_settings_component
bp_is_single
bp_is_single_activity
bp_is_single_item
bp_is_site_home
bp_is_template_included
bp_is_theme_compat_active
bp_is_theme_compat_original_template
bp_is_update
bp_is_user
bp_is_user_active
bp_is_user_activity
bp_is_user_blogs
bp_is_user_change_avatar
bp_is_user_change_cover_image
bp_is_user_deleted
bp_is_user_forums
bp_is_user_friend_requests
bp_is_user_friends
bp_is_user_friends_activity
bp_is_user_front
bp_is_user_groups
bp_is_user_groups_activity
bp_is_user_inactive
bp_is_user_members_invitations
bp_is_user_members_invitations_list
bp_is_user_members_invitations_send_screen
bp_is_user_messages
bp_is_user_notifications
bp_is_user_profile
bp_is_user_profile_edit
bp_is_user_recent_commments
bp_is_user_recent_posts
bp_is_user_settings
bp_is_user_settings_account_delete
bp_is_user_settings_general
bp_is_user_settings_notifications
bp_is_user_settings_profile
bp_is_user_spammer
bp_is_username_compatibility_mode
bp_is_widget_block_active
bp_last_activity
bp_last_activity_migrate
bp_late_include
bp_legacy_groups_admin_screen_hidden_input
bp_legacy_theme_activity_template_loader
bp_legacy_theme_ajax_accept_friendship
bp_legacy_theme_ajax_addremove_friend
bp_legacy_theme_ajax_close_notice
bp_legacy_theme_ajax_invite_user
bp_legacy_theme_ajax_joinleave_group
bp_legacy_theme_ajax_message_markread
bp_legacy_theme_ajax_message_markunread
bp_legacy_theme_ajax_messages_autocomplete_results
bp_legacy_theme_ajax_messages_delete
bp_legacy_theme_ajax_messages_send_reply
bp_legacy_theme_ajax_messages_star_handler
bp_legacy_theme_ajax_querystring
bp_legacy_theme_ajax_reject_friendship
bp_legacy_theme_blog_create_button
bp_legacy_theme_blog_create_nav
bp_legacy_theme_cover_image
bp_legacy_theme_delete_activity
bp_legacy_theme_delete_activity_comment
bp_legacy_theme_get_single_activity_content
bp_legacy_theme_group_create_button
bp_legacy_theme_group_create_nav
bp_legacy_theme_group_manage_members_add_search
bp_legacy_theme_invite_template_loader
bp_legacy_theme_mark_activity_favorite
bp_legacy_theme_messages_template_loader
bp_legacy_theme_new_activity_comment
bp_legacy_theme_object_template_loader
bp_legacy_theme_post_update
bp_legacy_theme_requests_template_loader
bp_legacy_theme_spam_activity
bp_legacy_theme_unmark_activity_favorite
bp_live_spammer_login_error
bp_load_custom_script_translation_file
bp_load_custom_translation_file
bp_load_theme_functions
bp_loaded
bp_locate_template
bp_locate_template_asset
bp_log_out_link
bp_loggedin_user_avatar
bp_loggedin_user_domain
bp_loggedin_user_fullname
bp_loggedin_user_id
bp_loggedin_user_link
bp_loggedin_user_url
bp_loggedin_user_username
bp_loggedinuser_link
bp_login_redirect
bp_login_redirector
bp_maintenance_mode
bp_major_version
bp_map_meta_caps
bp_maybe_load_mentions_scripts_for_blog_content
bp_member_activity_feed_link
bp_member_add_friend_button
bp_member_avatar
bp_member_class
bp_member_hidden_fields
bp_member_is_loggedin_user
bp_member_last_active
bp_member_latest_update
bp_member_link
bp_member_name
bp_member_permalink
bp_member_profile_data
bp_member_random_profile_data
bp_member_registered
bp_member_total_friend_count
bp_member_type_directory_link
bp_member_type_directory_permalink
bp_member_type_list
bp_member_type_tax_name
bp_member_user_email
bp_member_user_id
bp_member_user_login
bp_member_user_nicename
bp_members
bp_members_action_activate_account
bp_members_action_delete_avatar
bp_members_activity_feed
bp_members_add_role_after_activation
bp_members_admin_bar_my_account_logout
bp_members_admin_bar_my_account_menu
bp_members_admin_bar_notifications_dropdown
bp_members_admin_bar_notifications_menu
bp_members_admin_bar_notifications_menu_priority
bp_members_admin_bar_user_admin_menu
bp_members_admin_format_xprofile_field_for_display
bp_members_admin_preview_signup_profile_info
bp_members_adminbar_admin_menu
bp_members_avatar_upload_dir
bp_members_blocks_add_script_data
bp_members_clear_member_type_cache
bp_members_component_link
bp_members_delete_signup_cache
bp_members_delete_signup_cache_multiples
bp_members_directory_permalink
bp_members_edit_profile_url
bp_members_filter_user_query_populate_extras_friend_count_latest_update
bp_members_filter_user_query_populate_extras_last_activity
bp_members_filter_user_query_populate_extras_meta
bp_members_format_activity_action_new_avatar
bp_members_format_activity_action_new_member
bp_members_get_path_chunks
bp_members_get_signup_by
bp_members_get_user_nicename
bp_members_get_user_slug
bp_members_get_user_url
bp_members_has_directory
bp_members_invitation_resend_by_id
bp_members_invitations_accepted_invitation_notification
bp_members_invitations_action_bulk_manage
bp_members_invitations_add_legacy_registration_disabled_message
bp_members_invitations_add_legacy_welcome_message
bp_members_invitations_bulk_management_dropdown
bp_members_invitations_cancel_activation_email
bp_members_invitations_complete_signup
bp_members_invitations_delete_by_id
bp_members_invitations_delete_invites
bp_members_invitations_delete_optedout_invites
bp_members_invitations_get_hash
bp_members_invitations_get_invites
bp_members_invitations_get_modified_registration_disabled_message
bp_members_invitations_get_registration_welcome_message
bp_members_invitations_invite_user
bp_members_invitations_list_invites_permalink
bp_members_invitations_make_registration_email_input_readonly_if_invite
bp_members_invitations_maybe_bypass_request_approval
bp_members_invitations_pagination_count
bp_members_invitations_pagination_links
bp_members_invitations_send_invites_permalink
bp_members_invitations_slug
bp_members_invitations_user_can_view_screens
bp_members_invitations_user_can_view_send_screen
bp_members_invitations_user_has_sent_invites
bp_members_is_community_profile_enabled
bp_members_login_resend_activation_email
bp_members_mark_read_accepted_invitation_notification
bp_members_mark_read_submitted_membership_request_notification
bp_members_member_type_base
bp_members_membership_requests_add_link_to_widget_login_form
bp_members_membership_requests_add_link_wp_login
bp_members_membership_requests_add_toolbar_link
bp_members_membership_requests_cancel_activation_email
bp_members_membership_requests_cancel_activation_email_multisite
bp_members_membership_requests_delete_notifications_on_change
bp_members_membership_requests_filter_complete_signup_button
bp_members_membership_requests_filter_sidebar_register_link
bp_members_membership_requests_filter_signup_bulk_actions
bp_members_membership_requests_filter_signup_row_actions
bp_members_membership_requests_filter_signup_table_date_sent_header
bp_members_membership_requests_filter_signup_table_unsent_message
bp_members_membership_requests_notify_site_admins
bp_members_membership_requests_send_rejection_mail
bp_members_migrate_signups
bp_members_new_avatar_activity
bp_members_pagination_count
bp_members_pagination_links
bp_members_prefetch_member_type
bp_members_register_activity_actions
bp_members_register_members_widget
bp_members_register_recently_active_widget
bp_members_register_scripts
bp_members_register_whos_online_widget
bp_members_register_widgets
bp_members_remove_edit_page_menu
bp_members_remove_previous_avatar_activity
bp_members_render_active_members_block
bp_members_render_dynamic_members_block
bp_members_render_member_block
bp_members_render_members_avatars_block
bp_members_render_members_block
bp_members_render_online_members_block
bp_members_reset_activity_cache_incrementor
bp_members_reset_signup_cache_incrementor
bp_members_root_slug
bp_members_sanitize_invitation_property
bp_members_screen_change_avatar
bp_members_screen_change_cover_image
bp_members_screen_display_profile
bp_members_screen_index
bp_members_signup_sanitization
bp_members_signup_with_subdirectory_blog
bp_members_site_requests_enabled
bp_members_slug
bp_members_type_admin_menu
bp_members_type_admin_type_exists
bp_members_type_admin_updated_messages
bp_members_user_can_filter
bp_members_user_pass_required_strength
bp_members_validate_user_password
bp_mentioned_user_display_name
bp_message_activate_deactivate_link
bp_message_activate_deactivate_text
bp_message_add_meta
bp_message_css_class
bp_message_get_notices
bp_message_get_recipient_tabs
bp_message_get_recipient_usernames
bp_message_is_active_notice
bp_message_loading_image_src
bp_message_notice_delete_link
bp_message_notice_dismiss_link
bp_message_notice_id
bp_message_notice_post_date
bp_message_notice_subject
bp_message_notice_text
bp_message_search_form
bp_message_thread
bp_message_thread_avatar
bp_message_thread_content
bp_message_thread_delete_link
bp_message_thread_excerpt
bp_message_thread_from
bp_message_thread_has_unread
bp_message_thread_id
bp_message_thread_last_post_date
bp_message_thread_last_post_date_raw
bp_message_thread_subject
bp_message_thread_to
bp_message_thread_total_and_unread_count
bp_message_thread_total_count
bp_message_thread_unread_count
bp_message_thread_view_link
bp_message_threads
bp_messages_action_bulk_manage
bp_messages_action_create_message
bp_messages_action_dismiss_notice
bp_messages_action_edit_notice
bp_messages_action_exit_thread
bp_messages_action_mark_read
bp_messages_action_mark_unread
bp_messages_add_meta
bp_messages_bulk_management_dropdown
bp_messages_clear_cache_on_message_delete
bp_messages_clear_cache_on_message_save
bp_messages_content_value
bp_messages_delete_meta
bp_messages_dismiss_sitewide_notice
bp_messages_embed
bp_messages_enforce_current_user
bp_messages_exit_thread
bp_messages_filter_kses
bp_messages_filter_starred_message_threads
bp_messages_form_action
bp_messages_get_meta
bp_messages_is_active_notice
bp_messages_is_message_starred
bp_messages_mark_notification_on_mark_thread
bp_messages_message_delete_notifications
bp_messages_message_sent_add_notification
bp_messages_options
bp_messages_pagination
bp_messages_pagination_count
bp_messages_personal_data_exporter
bp_messages_register_personal_data_exporter
bp_messages_register_scripts
bp_messages_register_sitewide_notices_widget
bp_messages_register_widgets
bp_messages_render_sitewide_notices_block
bp_messages_screen_conversation_mark_notifications
bp_messages_screen_inbox_mark_notifications
bp_messages_slug
bp_messages_star_action_handler
bp_messages_star_bulk_manage_handler
bp_messages_star_bulk_management_dropdown
bp_messages_star_content
bp_messages_star_enqueue_scripts
bp_messages_star_message_css_class
bp_messages_star_screen
bp_messages_star_set_action
bp_messages_subject_value
bp_messages_update_meta
bp_messages_update_meta_cache
bp_messages_username_value
bp_migrate_directory_page_titles
bp_migrate_new_member_activity_component
bp_modify_document_title_parts
bp_modify_page_title
bp_nav_item_has_subnav
bp_nav_menu
bp_nav_menu_get_item_url
bp_nav_menu_get_loggedin_pages
bp_nav_menu_get_loggedout_pages
bp_new_group_avatar
bp_new_group_description
bp_new_group_enable_forum
bp_new_group_id
bp_new_group_invite_friend_list
bp_new_group_name
bp_new_group_status
bp_new_site
bp_notices_clear_cache
bp_notifications_action_bulk_manage
bp_notifications_action_delete
bp_notifications_action_mark_read
bp_notifications_action_mark_unread
bp_notifications_add_meta
bp_notifications_add_notification
bp_notifications_buddybar_menu
bp_notifications_bulk_management_dropdown
bp_notifications_check_notification_access
bp_notifications_clear_all_for_user_cache
bp_notifications_clear_all_for_user_cache_after_save
bp_notifications_clear_all_for_user_cache_before_delete
bp_notifications_clear_all_for_user_cache_before_update
bp_notifications_delete_all_notifications_by_type
bp_notifications_delete_meta
bp_notifications_delete_notification
bp_notifications_delete_notifications_by_ids
bp_notifications_delete_notifications_by_item_id
bp_notifications_delete_notifications_by_item_ids
bp_notifications_delete_notifications_by_type
bp_notifications_delete_notifications_from_user
bp_notifications_delete_notifications_on_delete_user
bp_notifications_delete_notifications_on_user_delete
bp_notifications_get_all_notifications_for_user
bp_notifications_get_grouped_notifications_for_user
bp_notifications_get_meta
bp_notifications_get_notification
bp_notifications_get_notifications_for_user
bp_notifications_get_registered_components
bp_notifications_get_unread_notification_count
bp_notifications_mark_all_notifications_by_type
bp_notifications_mark_notification
bp_notifications_mark_notifications_by_ids
bp_notifications_mark_notifications_by_item_id
bp_notifications_mark_notifications_by_item_ids
bp_notifications_mark_notifications_by_type
bp_notifications_mark_notifications_from_user
bp_notifications_pagination_count
bp_notifications_pagination_links
bp_notifications_permalink
bp_notifications_personal_data_exporter
bp_notifications_read_permalink
bp_notifications_screen_read
bp_notifications_screen_settings
bp_notifications_screen_unread
bp_notifications_slug
bp_notifications_sort_order_form
bp_notifications_toolbar_menu
bp_notifications_unread_permalink
bp_notifications_update_meta
bp_notifications_update_meta_cache
bp_nouveau
bp_nouveau_activation_hook
bp_nouveau_activity
bp_nouveau_activity_comment_action
bp_nouveau_activity_comment_buttons
bp_nouveau_activity_comment_data_attribute_id
bp_nouveau_activity_comment_form
bp_nouveau_activity_comments
bp_nouveau_activity_content
bp_nouveau_activity_customizer_controls
bp_nouveau_activity_data_attribute_id
bp_nouveau_activity_enqueue_scripts
bp_nouveau_activity_entry_buttons
bp_nouveau_activity_excerpt_append_text
bp_nouveau_activity_get_rss_link
bp_nouveau_activity_get_rss_screen_reader_text
bp_nouveau_activity_get_rss_tooltip
bp_nouveau_activity_has_content
bp_nouveau_activity_hook
bp_nouveau_activity_localize_scripts
bp_nouveau_activity_member_post_form
bp_nouveau_activity_notification_filters
bp_nouveau_activity_print_post_form_templates
bp_nouveau_activity_recurse_comments
bp_nouveau_activity_register_scripts
bp_nouveau_activity_rss_link
bp_nouveau_activity_rss_screen_reader_text
bp_nouveau_activity_rss_tooltip
bp_nouveau_activity_scope_newest_class
bp_nouveau_activity_secondary_avatars
bp_nouveau_activity_timestamp
bp_nouveau_activity_widget_query
bp_nouveau_add_notice_notification_for_user
bp_nouveau_add_notify_group_members_checkbox
bp_nouveau_after_activity_directory_content
bp_nouveau_after_activity_post_form
bp_nouveau_after_blogs_directory_content
bp_nouveau_after_directory_page
bp_nouveau_after_groups_directory_content
bp_nouveau_after_loop
bp_nouveau_after_members_directory_content
bp_nouveau_ajax_addremove_friend
bp_nouveau_ajax_button
bp_nouveau_ajax_clear_new_mentions
bp_nouveau_ajax_delete_activity
bp_nouveau_ajax_delete_thread_messages
bp_nouveau_ajax_dismiss_sitewide_notice
bp_nouveau_ajax_exit_thread_messages
bp_nouveau_ajax_get_activity_objects
bp_nouveau_ajax_get_message_recipients_data
bp_nouveau_ajax_get_message_sender_data
bp_nouveau_ajax_get_single_activity_content
bp_nouveau_ajax_get_thread_messages
bp_nouveau_ajax_get_user_message_threads
bp_nouveau_ajax_get_users_to_invite
bp_nouveau_ajax_joinleave_group
bp_nouveau_ajax_mark_activity_favorite
bp_nouveau_ajax_messages_send_message
bp_nouveau_ajax_messages_send_reply
bp_nouveau_ajax_messages_thread_read
bp_nouveau_ajax_new_activity_comment
bp_nouveau_ajax_object_template_loader
bp_nouveau_ajax_post_update
bp_nouveau_ajax_querystring
bp_nouveau_ajax_readunread_thread_messages
bp_nouveau_ajax_remove_group_invite
bp_nouveau_ajax_send_group_invites
bp_nouveau_ajax_spam_activity
bp_nouveau_ajax_star_thread_messages
bp_nouveau_ajax_unmark_activity_favorite
bp_nouveau_avatar_args
bp_nouveau_base_account_has_xprofile
bp_nouveau_before_activity_directory_content
bp_nouveau_before_activity_post_form
bp_nouveau_before_blogs_directory_content
bp_nouveau_before_groups_directory_content
bp_nouveau_before_loop
bp_nouveau_before_members_directory_content
bp_nouveau_blog_has_latest_post
bp_nouveau_blog_loop_item_has_lastest_post
bp_nouveau_blogs
bp_nouveau_blogs_catch_button_args
bp_nouveau_blogs_confirm_hook
bp_nouveau_blogs_create_hook
bp_nouveau_blogs_customizer_controls
bp_nouveau_blogs_customizer_settings
bp_nouveau_blogs_loop_buttons
bp_nouveau_blogs_loop_item
bp_nouveau_container_classes
bp_nouveau_current_object
bp_nouveau_current_user_can
bp_nouveau_customize_register
bp_nouveau_customizer_enqueue_scripts
bp_nouveau_customizer_grid_choices
bp_nouveau_directory_list_class
bp_nouveau_directory_nav_object
bp_nouveau_directory_type_navs_class
bp_nouveau_dismiss_button_type
bp_nouveau_filter_component
bp_nouveau_filter_container_id
bp_nouveau_filter_id
bp_nouveau_filter_label
bp_nouveau_filter_options
bp_nouveau_format_notice_notification_for_user
bp_nouveau_friend_hook
bp_nouveau_friends
bp_nouveau_get_activity_comment_action
bp_nouveau_get_activity_comment_buttons
bp_nouveau_get_activity_directory_nav_items
bp_nouveau_get_activity_entry_buttons
bp_nouveau_get_activity_filters
bp_nouveau_get_activity_filters_array
bp_nouveau_get_activity_timestamp
bp_nouveau_get_appearance_settings
bp_nouveau_get_blog_signup_inline_script
bp_nouveau_get_blogs_buttons
bp_nouveau_get_blogs_directory_nav_items
bp_nouveau_get_blogs_filters
bp_nouveau_get_component_filters
bp_nouveau_get_component_slug
bp_nouveau_get_container_classes
bp_nouveau_get_current_priority_nav_object
bp_nouveau_get_customizer_link
bp_nouveau_get_directory_list_class
bp_nouveau_get_directory_nav_object
bp_nouveau_get_directory_type_navs_class
bp_nouveau_get_filter_container_id
bp_nouveau_get_filter_id
bp_nouveau_get_filter_label
bp_nouveau_get_filter_options
bp_nouveau_get_group_create_steps_classes
bp_nouveau_get_group_description_excerpt
bp_nouveau_get_group_meta
bp_nouveau_get_group_potential_invites
bp_nouveau_get_groups_buttons
bp_nouveau_get_groups_directory_nav_items
bp_nouveau_get_groups_filters
bp_nouveau_get_hooked_group_meta
bp_nouveau_get_hooked_member_meta
bp_nouveau_get_loop_classes
bp_nouveau_get_member_latest_update
bp_nouveau_get_member_meta
bp_nouveau_get_members_buttons
bp_nouveau_get_members_directory_nav_items
bp_nouveau_get_members_filters
bp_nouveau_get_message_date
bp_nouveau_get_nav_classes
bp_nouveau_get_nav_count
bp_nouveau_get_nav_id
bp_nouveau_get_nav_link
bp_nouveau_get_nav_link_id
bp_nouveau_get_nav_link_text
bp_nouveau_get_nav_link_title
bp_nouveau_get_nav_scope
bp_nouveau_get_notifications_filters
bp_nouveau_get_search_objects
bp_nouveau_get_search_primary_object
bp_nouveau_get_signup_fields
bp_nouveau_get_single_item_nav_classes
bp_nouveau_get_single_item_subnav_classes
bp_nouveau_get_submit_button
bp_nouveau_get_template_message
bp_nouveau_get_template_message_type
bp_nouveau_get_temporary_setting
bp_nouveau_get_theme_layout_widths
bp_nouveau_get_user_feedback
bp_nouveau_get_wp_profile_field_data
bp_nouveau_get_wp_profile_field_id
bp_nouveau_get_wp_profile_field_label
bp_nouveau_get_wp_profile_fields
bp_nouveau_group_activity_widget_overrides
bp_nouveau_group_creation_screen
bp_nouveau_group_creation_tabs
bp_nouveau_group_description_excerpt
bp_nouveau_group_get_core_create_screens
bp_nouveau_group_get_core_manage_screens
bp_nouveau_group_get_template_part
bp_nouveau_group_groups_widget_overrides
bp_nouveau_group_has_meta
bp_nouveau_group_has_meta_extra
bp_nouveau_group_header_buttons
bp_nouveau_group_header_template_part
bp_nouveau_group_hook
bp_nouveau_group_invites_create_steps
bp_nouveau_group_invites_interface
bp_nouveau_group_is_home_widgets
bp_nouveau_group_locate_template_part
bp_nouveau_group_manage_screen
bp_nouveau_group_members_widget_overrides
bp_nouveau_group_meta
bp_nouveau_group_print_invites_placeholders
bp_nouveau_group_print_invites_templates
bp_nouveau_group_reset_front_template
bp_nouveau_group_setup_nav
bp_nouveau_group_template_part
bp_nouveau_group_type_checked
bp_nouveau_groups
bp_nouveau_groups_activity_post_form
bp_nouveau_groups_add_home_widget_filters
bp_nouveau_groups_catch_button_args
bp_nouveau_groups_create_hook
bp_nouveau_groups_create_steps_classes
bp_nouveau_groups_customizer_controls
bp_nouveau_groups_customizer_sections
bp_nouveau_groups_customizer_settings
bp_nouveau_groups_disallow_all_members_invites
bp_nouveau_groups_do_group_boxes
bp_nouveau_groups_enqueue_scripts
bp_nouveau_groups_front_page_description
bp_nouveau_groups_get_customizer_option_link
bp_nouveau_groups_get_customizer_widgets_link
bp_nouveau_groups_get_group_invites_setting
bp_nouveau_groups_get_inviter_ids
bp_nouveau_groups_invite_buttons
bp_nouveau_groups_invites_custom_message
bp_nouveau_groups_invites_restriction_admin_nav
bp_nouveau_groups_invites_restriction_nav
bp_nouveau_groups_localize_scripts
bp_nouveau_groups_loop_buttons
bp_nouveau_groups_loop_item
bp_nouveau_groups_manage_members_buttons
bp_nouveau_groups_notification_filters
bp_nouveau_groups_register_scripts
bp_nouveau_groups_remove_home_widget_filters
bp_nouveau_groups_request_buttons
bp_nouveau_groups_screen_invites_restriction
bp_nouveau_has_dismiss_button
bp_nouveau_has_nav
bp_nouveau_has_signup_xprofile_fields
bp_nouveau_has_template_message
bp_nouveau_has_wp_profile_fields
bp_nouveau_hidden_primary_nav
bp_nouveau_hidden_secondary_nav
bp_nouveau_hook
bp_nouveau_invitations_bulk_management_dropdown
bp_nouveau_is_feed_enable
bp_nouveau_is_groups_invitations_active
bp_nouveau_is_object_nav_in_sidebar
bp_nouveau_loop_classes
bp_nouveau_loop_get_grid_columns
bp_nouveau_loop_is_grid
bp_nouveau_member_activity_widget_overrides
bp_nouveau_member_customizer_nav
bp_nouveau_member_description
bp_nouveau_member_description_edit_link
bp_nouveau_member_email_notice_settings
bp_nouveau_member_extra_content
bp_nouveau_member_get_description_edit_link
bp_nouveau_member_get_template_part
bp_nouveau_member_groups_widget_overrides
bp_nouveau_member_has_extra_content
bp_nouveau_member_has_meta
bp_nouveau_member_header_buttons
bp_nouveau_member_header_template_part
bp_nouveau_member_hook
bp_nouveau_member_is_home_widgets
bp_nouveau_member_locate_template_part
bp_nouveau_member_members_widget_overrides
bp_nouveau_member_meta
bp_nouveau_member_reset_front_template
bp_nouveau_member_restrict_user_front_templates
bp_nouveau_member_template_part
bp_nouveau_members
bp_nouveau_members_add_home_widget_filters
bp_nouveau_members_catch_button_args
bp_nouveau_members_enqueue_scripts
bp_nouveau_members_get_customizer_option_link
bp_nouveau_members_get_customizer_widgets_link
bp_nouveau_members_loop_additional_info
bp_nouveau_members_loop_buttons
bp_nouveau_members_register_scripts
bp_nouveau_members_remove_home_widget_filters
bp_nouveau_members_wp_bio_info
bp_nouveau_message_markup_wrapper
bp_nouveau_message_search_form
bp_nouveau_messages
bp_nouveau_messages_adjust_admin_nav
bp_nouveau_messages_adjust_nav
bp_nouveau_messages_at_on_tinymce_init
bp_nouveau_messages_catch_hook_content
bp_nouveau_messages_enqueue_scripts
bp_nouveau_messages_enqueue_styles
bp_nouveau_messages_get_bulk_actions
bp_nouveau_messages_hook
bp_nouveau_messages_localize_scripts
bp_nouveau_messages_mce_buttons
bp_nouveau_messages_member_interface
bp_nouveau_messages_notification_filters
bp_nouveau_messages_print_placeholders
bp_nouveau_messages_print_templates
bp_nouveau_messages_register_scripts
bp_nouveau_nav_classes
bp_nouveau_nav_count
bp_nouveau_nav_has_count
bp_nouveau_nav_id
bp_nouveau_nav_item
bp_nouveau_nav_items
bp_nouveau_nav_link
bp_nouveau_nav_link_id
bp_nouveau_nav_link_text
bp_nouveau_nav_link_title
bp_nouveau_nav_scope
bp_nouveau_notifications
bp_nouveau_notifications_bulk_management_dropdown
bp_nouveau_notifications_dashiconified_link
bp_nouveau_notifications_delete_link
bp_nouveau_notifications_enqueue_scripts
bp_nouveau_notifications_filters
bp_nouveau_notifications_get_filters
bp_nouveau_notifications_init_filters
bp_nouveau_notifications_mark_read_link
bp_nouveau_notifications_mark_unread_link
bp_nouveau_notifications_register_filter
bp_nouveau_notifications_register_scripts
bp_nouveau_notifications_sort
bp_nouveau_notifications_sort_order_links
bp_nouveau_pagination
bp_nouveau_parse_hooked_dir_nav
bp_nouveau_parse_hooked_options
bp_nouveau_plugin_hook
bp_nouveau_prepare_group_for_js
bp_nouveau_prepare_group_potential_invites_for_js
bp_nouveau_push_sitewide_notices
bp_nouveau_register_activity_ajax_actions
bp_nouveau_register_blogs_ajax_actions
bp_nouveau_register_core_block_globals
bp_nouveau_register_groups_ajax_actions
bp_nouveau_register_messages_ajax_actions
bp_nouveau_register_primary_nav_widget_block
bp_nouveau_register_sidebars
bp_nouveau_render_primary_nav_block
bp_nouveau_rest_group_invites_get_items_permissions_check
bp_nouveau_restrict_rest_group_invite_to_friends
bp_nouveau_sanitize_nav_order
bp_nouveau_search_container_class
bp_nouveau_search_default_text
bp_nouveau_search_form
bp_nouveau_search_object_data_attr
bp_nouveau_search_selector_id
bp_nouveau_search_selector_name
bp_nouveau_set_nav_item_order
bp_nouveau_signup_form
bp_nouveau_signup_hook
bp_nouveau_signup_privacy_policy_acceptance_section
bp_nouveau_single_item_nav_classes
bp_nouveau_single_item_subnav_classes
bp_nouveau_single_item_supports_priority_nav
bp_nouveau_submit_button
bp_nouveau_template_message
bp_nouveau_template_message_classes
bp_nouveau_template_notices
bp_nouveau_the_group_meta
bp_nouveau_theme_cover_image
bp_nouveau_unregister_blocks_for_post_context
bp_nouveau_unregister_notices_widget
bp_nouveau_user_feedback
bp_nouveau_wp_profile_field
bp_nouveau_wp_profile_field_data
bp_nouveau_wp_profile_field_id
bp_nouveau_wp_profile_field_label
bp_nouveau_wp_profile_fields
bp_nouveau_wp_profile_hooks
bp_nouveau_wrapper
bp_nouveau_xprofile
bp_nouveau_xprofile_edit_visibilty
bp_nouveau_xprofile_enqueue_scripts
bp_nouveau_xprofile_hook
bp_nouveau_xprofile_register_scripts
bp_optouts_reset_cache_incrementor
bp_output_activity_meta
bp_page_title
bp_parse_ajax_referer_query
bp_parse_args
bp_parse_query
bp_php_requirements_notice
bp_post_author_avatar
bp_post_render_core_comments_block
bp_post_request
bp_potential_friend_id
bp_pre_get_option
bp_pre_render_core_comments_block
bp_pre_schema_upgrade
bp_profile_field_data
bp_profile_fields
bp_profile_get_field_groups
bp_profile_get_settings_visibility_select
bp_profile_get_visibility_radio_buttons
bp_profile_group_has_fields
bp_profile_group_name
bp_profile_group_tabs
bp_profile_groups
bp_profile_has_multiple_groups
bp_profile_last_updated
bp_profile_settings_visibility_select
bp_profile_slug
bp_profile_visibility_radio_buttons
bp_ready
bp_redirect_canonical
bp_register_activity_actions
bp_register_admin_settings
bp_register_admin_style
bp_register_block
bp_register_block_assets
bp_register_block_components
bp_register_buddypress_theme_feature
bp_register_default_taxonomies
bp_register_group_extension
bp_register_group_type_metadata
bp_register_importers
bp_register_member_type
bp_register_member_type_metadata
bp_register_member_types
bp_register_nav
bp_register_notifications_personal_data_exporter
bp_register_post_statuses
bp_register_post_types
bp_register_taxonomies
bp_register_template_stack
bp_register_theme_compat_default_features
bp_register_theme_directory
bp_register_theme_package
bp_register_theme_packages
bp_register_type_meta
bp_register_type_metadata
bp_registration_needs_activation
bp_rel_canonical
bp_remove_adjacent_posts_rel_link
bp_remove_all_filters
bp_remove_caps
bp_remove_group_type_on_group_delete
bp_remove_member_type
bp_remove_member_type_on_delete_user
bp_remove_member_type_on_user_delete
bp_remove_object_terms
bp_remove_roles
bp_remove_user_data_on_delete_user_hook
bp_replace_the_content
bp_request
bp_reset_query
bp_rest_api_init
bp_rest_api_is_available
bp_rest_api_register_request_script
bp_rest_api_signup_disabled_feature_dispatch_error
bp_rest_api_v1_dispatch_error
bp_rest_get_object_url
bp_rest_get_user
bp_rest_get_user_url
bp_rest_in_buddypress
bp_rest_is_plugin_active
bp_rest_namespace
bp_rest_post_dispatch
bp_rest_prepare_date_response
bp_rest_register_field
bp_rest_response_add_total_headers
bp_rest_sanitize_group_types
bp_rest_sanitize_member_types
bp_rest_sanitize_string_list
bp_rest_validate_group_types
bp_rest_validate_member_types
bp_rest_version
bp_restore_all_filters
bp_restrict_group_creation
bp_rewind_blogs
bp_rewrites_get_custom_slug_rewrite_id
bp_rewrites_get_default_url_chunks
bp_rewrites_get_member_data
bp_rewrites_get_root_url
bp_rewrites_get_slug
bp_rewrites_get_url
bp_root_domain
bp_root_slug
bp_root_url
bp_sanitize_pagination_arg
bp_screens
bp_search_default_text
bp_search_form
bp_search_form_action
bp_search_form_enabled
bp_search_form_type_select
bp_search_input_name
bp_search_placeholder
bp_search_slug
bp_send_email
bp_send_message_button
bp_send_private_message_button
bp_send_private_message_link
bp_send_public_message_button
bp_send_public_message_link
bp_send_welcome_email
bp_set_block_theme_compat
bp_set_current_user_default_role
bp_set_member_type
bp_set_object_terms
bp_set_object_type_terms_cache_group
bp_set_registered_by_code_group_type_metadata
bp_set_registered_by_code_member_type_metadata
bp_set_template_included
bp_set_theme_compat_active
bp_set_theme_compat_feature
bp_set_theme_compat_original_template
bp_set_theme_compat_template
bp_set_theme_compat_templates
bp_settings_action_capabilities
bp_settings_action_data
bp_settings_action_delete_account
bp_settings_action_general
bp_settings_action_notifications
bp_settings_can_delete_self_account
bp_settings_data_exporter_items
bp_settings_get_personal_data_confirmation_date
bp_settings_get_personal_data_expiration_date
bp_settings_get_personal_data_export_url
bp_settings_get_personal_data_request
bp_settings_get_registered_notification_keys
bp_settings_pending_email_notice
bp_settings_personal_data_export_exists
bp_settings_personal_data_exporter
bp_settings_register_personal_data_exporter
bp_settings_remove_email_subnav
bp_settings_root_slug
bp_settings_sanitize_notification_settings
bp_settings_screen_capabilities
bp_settings_screen_data
bp_settings_screen_delete_account
bp_settings_screen_general
bp_settings_screen_notification
bp_settings_show_capability_nav
bp_settings_show_delete_account_nav
bp_settings_slug
bp_settings_update_notification_settings
bp_settings_verify_email_change
bp_setup_activity
bp_setup_admin_bar
bp_setup_blogs
bp_setup_cache_groups
bp_setup_canonical_stack
bp_setup_components
bp_setup_core
bp_setup_current_user
bp_setup_friends
bp_setup_globals
bp_setup_groups
bp_setup_members
bp_setup_members_invitations
bp_setup_messages
bp_setup_nav
bp_setup_nav_menu_item
bp_setup_notifications
bp_setup_option_filters
bp_setup_root_components
bp_setup_settings
bp_setup_theme
bp_setup_theme_compat
bp_setup_title
bp_setup_updater
bp_setup_widgets
bp_setup_xprofile
bp_show_blog_signup_form
bp_signup_allowed
bp_signup_avatar
bp_signup_avatar_dir_value
bp_signup_blog_privacy_value
bp_signup_blog_title_value
bp_signup_blog_url_value
bp_signup_email_value
bp_signup_get_subdomain_base
bp_signup_page
bp_signup_requires_privacy_policy_acceptance
bp_signup_slug
bp_signup_subdomain_base
bp_signup_username_value
bp_signup_with_blog_value
bp_site_name
bp_sitewide_activity_feed_link
bp_sort_by_key
bp_stop_live_spammer
bp_strip_script_and_style_tags
bp_styles
bp_support_blocks
bp_template_include
bp_template_include_theme_compat
bp_template_include_theme_supports
bp_template_redirect
bp_the_activity
bp_the_blog
bp_the_body_class
bp_the_group
bp_the_member
bp_the_members_invitation
bp_the_members_invitation_action_links
bp_the_members_invitation_property
bp_the_members_invitations
bp_the_members_invitations_delete_link
bp_the_members_invitations_delete_url
bp_the_members_invitations_resend_link
bp_the_members_invitations_resend_url
bp_the_message_star_action_link
bp_the_message_thread_mark_read_url
bp_the_message_thread_mark_unread_url
bp_the_notification
bp_the_notification_action_links
bp_the_notification_component_action
bp_the_notification_component_name
bp_the_notification_date_notified
bp_the_notification_delete_link
bp_the_notification_delete_url
bp_the_notification_description
bp_the_notification_id
bp_the_notification_item_id
bp_the_notification_mark_link
bp_the_notification_mark_read_link
bp_the_notification_mark_read_url
bp_the_notification_mark_unread_link
bp_the_notification_mark_unread_url
bp_the_notification_secondary_item_id
bp_the_notification_time_since
bp_the_notifications
bp_the_profile_field
bp_the_profile_field_description
bp_the_profile_field_edit_value
bp_the_profile_field_id
bp_the_profile_field_ids
bp_the_profile_field_input_name
bp_the_profile_field_is_required
bp_the_profile_field_name
bp_the_profile_field_options
bp_the_profile_field_required_label
bp_the_profile_field_type
bp_the_profile_field_value
bp_the_profile_field_visibility_level
bp_the_profile_field_visibility_level_label
bp_the_profile_group
bp_the_profile_group_description
bp_the_profile_group_edit_form_action
bp_the_profile_group_field_ids
bp_the_profile_group_id
bp_the_profile_group_name
bp_the_profile_group_slug
bp_the_thread_delete_link
bp_the_thread_exit_link
bp_the_thread_id
bp_the_thread_message_alt_class
bp_the_thread_message_content
bp_the_thread_message_css_class
bp_the_thread_message_date_sent
bp_the_thread_message_id
bp_the_thread_message_sender_avatar
bp_the_thread_message_sender_id
bp_the_thread_message_sender_link
bp_the_thread_message_sender_name
bp_the_thread_message_time_since
bp_the_thread_recipients_list
bp_the_thread_subject
bp_theme_compat_is_block_theme
bp_theme_compat_loop_end
bp_theme_compat_reset_post
bp_theme_compat_toggle_is_page
bp_thread_has_messages
bp_thread_messages
bp_thread_messages_order
bp_thread_the_message
bp_total_blog_count
bp_total_blog_count_for_user
bp_total_favorite_count_for_user
bp_total_friend_count
bp_total_group_count
bp_total_group_count_for_user
bp_total_member_count
bp_total_mention_count_for_user
bp_total_site_member_count
bp_total_unread_messages_count
bp_uninstall
bp_unserialize_profile_field
bp_update_db_stuff
bp_update_is_directory
bp_update_is_item_admin
bp_update_is_item_mod
bp_update_meta_cache
bp_update_option
bp_update_to_10_0
bp_update_to_11_0
bp_update_to_11_4
bp_update_to_12_0
bp_update_to_14_0
bp_update_to_1_5
bp_update_to_1_6
bp_update_to_1_9
bp_update_to_1_9_2
bp_update_to_2_0
bp_update_to_2_0_1
bp_update_to_2_2
bp_update_to_2_3
bp_update_to_2_5
bp_update_to_2_7
bp_update_to_5_0
bp_update_to_8_0
bp_update_type_metadata
bp_update_user_last_activity
bp_update_user_meta
bp_upload_dir
bp_use_embed_in_activity
bp_use_embed_in_activity_replies
bp_use_embed_in_private_messages
bp_use_theme_compat_with_current_theme
bp_use_wp_admin_bar
bp_user_can
bp_user_can_create_groups
bp_user_firstname
bp_user_fullname
bp_user_has_access
bp_user_has_opted_out
bp_user_link
bp_verify_nonce_request
bp_version
bp_version_bump
bp_version_updater
bp_widget_block_dynamic_classname
bp_widgets_init
bp_word_or_name
bp_xprofile_action_settings
bp_xprofile_add_meta
bp_xprofile_add_xprofile_query_to_user_query
bp_xprofile_admin_form_field_types
bp_xprofile_admin_get_signup_field
bp_xprofile_admin_load
bp_xprofile_ajax_remove_signup_field
bp_xprofile_bp_user_query_search
bp_xprofile_clear_field_cache
bp_xprofile_clear_member_type_cache
bp_xprofile_create_field_type
bp_xprofile_delete_meta
bp_xprofile_escape_field_data
bp_xprofile_filter_meta_query
bp_xprofile_filter_user_query_populate_extras
bp_xprofile_format_activity_action_new_avatar
bp_xprofile_format_activity_action_new_member
bp_xprofile_format_activity_action_updated_profile
bp_xprofile_fullname_field_id
bp_xprofile_fullname_field_name
bp_xprofile_get_field_type
bp_xprofile_get_field_types
bp_xprofile_get_fields_by_visibility_levels
bp_xprofile_get_groups
bp_xprofile_get_hidden_field_types_for_user
bp_xprofile_get_hidden_fields_for_user
bp_xprofile_get_meta
bp_xprofile_get_non_cached_field_ids
bp_xprofile_get_settings_fields
bp_xprofile_get_signup_field_ids
bp_xprofile_get_visibility_levels
bp_xprofile_get_wp_user_keys
bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users
bp_xprofile_is_richtext_enabled_for_field
bp_xprofile_map_meta_caps
bp_xprofile_maybe_format_datebox_post_data
bp_xprofile_new_avatar_activity
bp_xprofile_personal_data_exporter
bp_xprofile_register_personal_data_exporter
bp_xprofile_reset_fields_by_name_cache_incrementor
bp_xprofile_reset_groups_cache_incrementor
bp_xprofile_reset_signup_field_cache
bp_xprofile_reset_user_mid_cache
bp_xprofile_sanitize_field_default
bp_xprofile_sanitize_field_options
bp_xprofile_screen_settings
bp_xprofile_settings_add_feedback_message
bp_xprofile_signup_args
bp_xprofile_update_field_meta
bp_xprofile_update_fielddata_meta
bp_xprofile_update_fieldgroup_meta
bp_xprofile_update_meta
bp_xprofile_update_meta_cache
bp_xprofile_updated_profile_activity
buddypress
build_query
cache_javascript_headers
clean_pre
clean_url
current_time
delete_blog_option
ent2ncr
esc_attr
esc_html
esc_js
esc_sql
esc_url
esc_url_raw
force_ssl_admin
force_ssl_login
format_to_edit
friends_accept_friendship
friends_action_add_friend
friends_action_remove_friend
friends_add_friend
friends_check_friendship
friends_check_friendship_status
friends_check_user_has_friends
friends_clear_friend_notifications
friends_clear_friend_object_cache
friends_count_invitable_friends
friends_delete_activity
friends_format_notifications
friends_get_alphabetically
friends_get_bulk_last_active
friends_get_friend_count_for_user
friends_get_friend_user_ids
friends_get_friends_invite_list
friends_get_friendship_id
friends_get_friendship_request_user_ids
friends_get_newest
friends_get_recently_active
friends_get_total_friend_count
friends_is_friendship_confirmed
friends_notification_accepted_request
friends_notification_new_request
friends_record_activity
friends_register_activity_actions
friends_reject_friendship
friends_remove_data
friends_remove_friend
friends_screen_my_friends
friends_screen_notification_settings
friends_screen_requests
friends_search_friends
friends_search_users
friends_update_friend_totals
friends_withdraw_friendship
get_blog_option
get_blogs_of_user
get_status_header_desc
get_translations
groups_accept_all_pending_membership_requests
groups_accept_invite
groups_accept_membership_request
groups_action_clean_up_invites_requests
groups_action_create_group
groups_action_group_feed
groups_action_join_group
groups_action_leave_group
groups_action_redirect_to_random_group
groups_action_sort_creation_steps
groups_add_groupmeta
groups_ajax_widget_groups_list
groups_at_message_notification
groups_avatar_upload
groups_avatar_upload_dir
groups_ban_member
groups_check_for_membership_request
groups_check_group_exists
groups_check_has_invite_from_user
groups_check_slug
groups_check_user_has_invite
groups_clear_group_administrator_cache
groups_clear_group_administrator_cache_on_member_save
groups_clear_group_object_cache
groups_clear_group_type_cache
groups_clear_group_user_object_cache
groups_create_group
groups_delete_all_group_invites
groups_delete_group
groups_delete_groupmeta
groups_delete_invite
groups_delete_membership_request
groups_demote_member
groups_directory_groups_setup
groups_edit_base_group_details
groups_edit_group_settings
groups_email_notification_membership_request_completed_by_admin
groups_format_notifications
groups_get_current_group
groups_get_group
groups_get_group_admins
groups_get_group_members
groups_get_group_mods
groups_get_groupmeta
groups_get_groups
groups_get_id
groups_get_id_by_previous_slug
groups_get_invite_count_for_user
groups_get_invited_to_group_ids
groups_get_invites
groups_get_invites_for_group
groups_get_invites_for_user
groups_get_membership_requested_group_ids
groups_get_membership_requested_user_ids
groups_get_requests
groups_get_slug
groups_get_total_group_count
groups_get_total_member_count
groups_get_user_groups
groups_invite_user
groups_is_user_admin
groups_is_user_banned
groups_is_user_creator
groups_is_user_invited
groups_is_user_member
groups_is_user_mod
groups_is_user_pending
groups_is_valid_status
groups_join_group
groups_leave_group
groups_notification_group_invites
groups_notification_group_updated
groups_notification_membership_request_completed
groups_notification_new_membership_request
groups_notification_promoted_member
groups_post_update
groups_promote_member
groups_record_activity
groups_register_activity_actions
groups_register_widgets
groups_reject_invite
groups_reject_membership_request
groups_remove_data_for_user
groups_remove_group_invite
groups_remove_member
groups_screen_group_activity
groups_screen_group_activity_permalink
groups_screen_group_admin
groups_screen_group_admin_avatar
groups_screen_group_admin_cover_image
groups_screen_group_admin_delete_group
groups_screen_group_admin_edit_details
groups_screen_group_admin_manage_members
groups_screen_group_admin_requests
groups_screen_group_admin_settings
groups_screen_group_home
groups_screen_group_invite
groups_screen_group_invites
groups_screen_group_members
groups_screen_group_request_membership
groups_screen_my_groups
groups_screen_notification_settings
groups_send_invites
groups_send_membership_request
groups_total_groups_for_user
groups_unban_member
groups_uninvite_user
groups_update_groupmeta
groups_update_last_activity
is_buddypress
is_email
is_lighttpd_before_150
is_serialized
is_serialized_string
is_site_admin
is_ssl
is_subdomain_install
is_wp_error
js_escape
like_escape
load_textdomain
load_translations
make_clickable
maybe_serialize
maybe_unserialize
mb_strlen
mb_strpos
mb_strrpos
members_format_notifications
members_screen_list_sent_invites
members_screen_notification_settings
members_screen_send_invites
messages_action_bulk_delete
messages_action_conversation
messages_action_delete_message
messages_add_autocomplete_css
messages_add_autocomplete_js
messages_add_callback_values
messages_autocomplete_init_jsblock
messages_check_thread_access
messages_delete_thread
messages_format_notifications
messages_get_message_sender
messages_get_message_thread_id
messages_get_unread_count
messages_is_user_sender
messages_is_valid_thread
messages_mark_thread_read
messages_mark_thread_unread
messages_new_message
messages_notification_new_message
messages_remove_callback_values
messages_screen_compose
messages_screen_conversation
messages_screen_inbox
messages_screen_notices
messages_screen_notification_settings
messages_screen_sentbox
messages_send_notice
nocache_headers
nouveau_error_template
remove_accents
remove_query_arg
restore_current_blog
sanitize_email
sanitize_text_field
sanitize_title
sanitize_title_with_dashes
sanitize_user
seems_utf8
status_header
stripslashes_deep
switch_to_blog
toggle_component_visibility
trailingslashit
untrailingslashit
update_blog_option
update_blog_status
updates_register_activity_actions
urlencode_deep
utf8_uri_encode
validate_file
wp_check_invalid_utf8
wp_clone
wp_get_nocache_headers
wp_html_excerpt
wp_parse_args
wp_parse_str
wp_pre_kses_less_than
wp_pre_kses_less_than_callback
wp_remote_fopen
wp_specialchars
wp_specialchars_decode
wp_strip_all_tags
wp_test_bp_install
wp_timezone_choice
wp_timezone_override_offset
wp_timezone_supported
wptexturize
xprofile_action_delete_avatar
xprofile_activity_filter_options
xprofile_add_admin_css
xprofile_add_admin_js
xprofile_add_admin_menu
xprofile_admin
xprofile_admin_delete_field
xprofile_admin_delete_field_screen
xprofile_admin_delete_group
xprofile_admin_delete_group_screen
xprofile_admin_field
xprofile_admin_manage_field
xprofile_admin_manage_group
xprofile_admin_screen
xprofile_ajax_reorder_field_groups
xprofile_ajax_reorder_fields
xprofile_check_is_required_field
xprofile_clear_fullname_field_id_cache
xprofile_clear_profile_field_object_cache
xprofile_clear_profile_groups_object_cache
xprofile_clear_profiledata_object_cache
xprofile_delete_activity
xprofile_delete_field
xprofile_delete_field_data
xprofile_delete_field_group
xprofile_filter_comments
xprofile_filter_format_field_value
xprofile_filter_format_field_value_by_field_id
xprofile_filter_format_field_value_by_type
xprofile_filter_kses
xprofile_filter_link_profile_data
xprofile_filter_pre_validate_value_by_field_type
xprofile_format_notifications
xprofile_format_profile_field
xprofile_get_field
xprofile_get_field_data
xprofile_get_field_group
xprofile_get_field_id_from_name
xprofile_get_field_visibility_level
xprofile_get_profile
xprofile_get_random_profile_data
xprofile_insert_field
xprofile_insert_field_group
xprofile_override_user_fullnames
xprofile_record_activity
xprofile_register_activity_action
xprofile_register_activity_actions
xprofile_remove_data
xprofile_remove_data_on_delete_user
xprofile_sanitize_data_value_before_display
xprofile_sanitize_data_value_before_display_from_get_field_data
xprofile_sanitize_data_value_before_save
xprofile_screen_change_avatar
xprofile_screen_change_cover_image
xprofile_screen_display_profile
xprofile_screen_edit_profile
xprofile_set_field_data
xprofile_set_field_visibility_level
xprofile_sync_bp_profile
xprofile_sync_wp_profile
xprofile_sync_wp_profile_on_single_field_set
xprofile_update_field_group_position
xprofile_update_field_position
zeroise
ARRAY_A
ARRAY_K
ARRAY_N
BPDB__CONNECT_ERROR_MESSAGE
BPDB__DB_VERSION_ERROR
BPDB__ERROR_HTML
BPDB__ERROR_STRING
BPDB__PHP_EXTENSION_MISSING
BPDB__SELECT_ERROR_MESSAGE
BP_AVATAR_FULL_HEIGHT
BP_AVATAR_FULL_WIDTH
BP_AVATAR_ORIGINAL_MAX_FILESIZE
BP_AVATAR_ORIGINAL_MAX_WIDTH
BP_AVATAR_THUMB_HEIGHT
BP_AVATAR_THUMB_WIDTH
BP_AVATAR_UPLOAD_PATH
BP_AVATAR_URL
BP_DB_VERSION
BP_FORUMS_PARENT_FORUM_ID
BP_FORUMS_SLUG
BP_LOG_ALL
BP_LOG_DEBUG
BP_LOG_ERROR
BP_LOG_FAIL
BP_LOG_NONE
BP_LOG_NOTICE
BP_LOG_WARNING
BP_PLUGIN_DIR
BP_PLUGIN_DIR
BP_PLUGIN_DIR
BP_PLUGIN_DIR
BP_PLUGIN_URL
BP_PLUGIN_URL
BP_REQUIRED_PHP_VERSION
BP_ROOT_BLOG
BP_ROOT_BLOG
BP_SEARCH_SLUG
BP_SHOW_AVATARS
BP_SOURCE_SUBDIRECTORY
BP_SOURCE_SUBDIRECTORY
BP_TESTS_DIR
BP_VERSION
BP_XPROFILE_BASE_GROUP_NAME
BP_XPROFILE_FULLNAME_FIELD_NAME
EZSQL_VERSION
OBJECT
OBJECT_K
SAVEQUERIES
WP_ROOT_DIR
WP_TESTS_CONFIG_PATH
WP_TESTS_DIR
WP_TESTS_PHPUNIT_POLYFILLS_PATH
__n($singular, $plural, $count, $domain = 'default'
)
_bp_activity_get_types_by_support(string $feature = 'generated-content'
) : array
This function is still a WIP, please don't use it into your plugins or themes.
package | BuddyPress |
---|---|
since | 10.0.0 |
access | private |
todo | `bp_activity_set_action()` should be improved to include a supports argument or best we should create a `bp_register_activity_type()` function to mimic the way WordPress registers post types. For now we'll use a non extendable workaround. |
string
The feature activity types should support.
array
The list of activity types name supporting the requested feature._bp_enforce_bp_moderate_cap_for_admins(array $caps= array()
, string $cap= ''
, integer $user_id= 0
, array $args= array()
) : array
In BuddyPress 1.6, the 'bp_moderate' cap was introduced. In order to enforce that bp_current_user_can( 'bp_moderate' ) always returns true for Administrators, we must manually add the 'bp_moderate' cap to the list of user caps for Admins.
Note that this level of enforcement is only necessary in the case of non-Multisite. This is because WordPress automatically assigns every capability - and thus 'bp_moderate' - to Super Admins on a Multisite installation. See \WP_User::has_cap().
This implementation of 'bp_moderate' is temporary, until BuddyPress properly matches caps to roles and stores them in the database.
Plugin authors: Please do not use this function; thank you. :)
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 7.0.0 |
access | private |
see |
array
The caps that WP associates with the given role.
string
The caps being tested for in WP_User::has_cap().
integer
ID of the user being checked against.
array
Miscellaneous arguments passed to the user_has_cap filter.
array
$allcaps The user's cap list, with 'bp_moderate' appended, if relevant._bp_filter_current_theme_supports(boolean $supports= false
, array $args= array()
, mixed $feature= null
) : boolean
Please do not use in your plugins or themes.
package | BuddyPress |
---|---|
since | 14.0.0 |
access | private |
boolean
Whether the active theme supports the given feature. Default false.
array
Array of arguments for the feature.
mixed
The theme feature.
boolean
True if the feature is supported. False otherwise._bp_maybe_remove_redirect_canonical()
Avoids issues with WordPress thinking that a BuddyPress URL might actually be a blog post or page.
This function should be considered temporary, and may be removed without notice in future versions of BuddyPress.
package | BuddyPress |
---|---|
since | 1.6.0 |
_bp_maybe_remove_rel_canonical()
This function should be considered temporary, and may be removed without notice in future versions of BuddyPress.
package | BuddyPress |
---|---|
since | 1.6.0 |
_bp_rehook_maybe_redirect_404()
WordPress's maybe_redirect_404() allows admins on a multisite installation to define 'NOBLOGREDIRECT', a URL to which 404 requests will be redirected. maybe_redirect_404() is hooked to template_redirect at priority 10, which creates a race condition with bp_template_redirect(), our piggyback hook. Due to a legacy bug in BuddyPress, internal BP content (such as members and groups) is marked 404 in $wp_query until bp_core_load_template(), when BP manually overrides the automatic 404. However, the race condition with maybe_redirect_404() means that this manual un-404-ing doesn't happen in time, with the results that maybe_redirect_404() thinks that the page is a legitimate 404, and redirects incorrectly to NOBLOGREDIRECT.
By switching maybe_redirect_404() to catch at a higher priority, we avoid the race condition. If bp_core_load_template() runs, it dies before reaching maybe_redirect_404(). If bp_core_load_template() does not run, it means that the 404 is legitimate, and maybe_redirect_404() can proceed as expected.
This function will be removed in a later version of BuddyPress. Plugins (and plugin authors!) should ignore it.
package | BuddyPress |
---|---|
since | 1.6.1 |
link | https://buddypress.trac.wordpress.org/ticket/4329 |
link | https://buddypress.trac.wordpress.org/ticket/4415 |
_bp_roles_init(\WP_Roles $wp_roles)
package | BuddyPress |
---|---|
since | 7.0.0 |
access | private |
\WP_Roles
The WordPress roles object.
_bp_strip_spans_from_title(string $title_part = ''
) : string
_bp_xprofile_signup_check_backcompat(string $template= ''
, string $template_name= ''
)
package | BuddyPress |
---|---|
since | 8.0.0 |
access | private |
string
The located path for registration template.
string
The needed template name.
_bp_xprofile_signup_do_backcompat(array $args = array()
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
access | private |
array
The xProfile loop's signup arguments.
array
The xProfile loop's signup arguments._bp_xprofile_signup_start_backcompat()
package | BuddyPress |
---|---|
since | 8.0.0 |
access | private |
_deep_replace(string|array $search, string $subject) : string
Repeats the replacement operation until it no longer replaces anything so as to remove "nested" values e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that str_replace would return
package | BuddyPress |
---|---|
since | 2.8.1 |
access | private |
string
array
string
string
The processed string_make_email_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BuddyPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with email address._make_url_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BuddyPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with URI address._make_web_ftp_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BuddyPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with URL address._wp_specialchars(string $string, mixed $quote_style= ENT_NOQUOTES
, string $charset= false
, boolean $double_encode= false
) : string
Specifically deals with: &, <, >, ", and '.
$quote_style can be set to ENT_COMPAT to encode " to ", or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded.
package | BuddyPress |
---|---|
since | 1.2.2 |
string
The text which is to be encoded.
mixed
Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.
string
Optional. The character encoding of the string. Default is false.
boolean
Optional. Whether or not to encode existing html entities. Default is false.
string
The encoded text with HTML entities._wp_timezone_choice_usort_callback($a, $b)
_wptexturize_pushpop_element(string $text, array $stack, string $disabled_elements, string $opening= '<'
, $closing= '>'
) : object
package | BuddyPress |
---|---|
access | private |
since | 2.9.0 |
string
Text to check. First character is assumed to be $opening
array
Array used as stack of opened tag elements
string
Tags to match against formatted as regexp sub-expression
string
string
Tag opening character, assumed to be 1 character long
object
absint(mixed $maybeint) : integer
package | BuddyPress |
---|---|
since | 2.5.0 |
mixed
Data you wish to have convered to an nonnegative integer
integer
An nonnegative integeradd_blog_option(integer $blog_id, string $option_name, mixed $option_value) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
see |
integer
Blog ID to add for. Not used.
string
Option name to add.
mixed
Option value to add.
boolean
add_query_arg() : string
You can rebuild the URL and append a new query variable to the URL query by using this function. You can also retrieve the full URL with query data.
Adding a single key & value or an associative array. Setting a key value to emptystring removes the key. Omitting oldquery_or_uri uses the $_SERVER value.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
New URL query string.apache_mod_loaded(string $mod, boolean $default = false
) : boolean
package | BuddyPress |
---|---|
since | 2.5.0 |
string
e.g. mod_rewrite
boolean
The default return value if the module is not found
boolean
attribute_escape(string $text) : string
backpress_add_option($option, $value)
backpress_convert_object($object, $output)
backpress_delete_transient($transient)
backpress_die(string $message, string $title= ''
, string|array $args= array()
)
This function calls the die() PHP function. The difference is that a message in HTML will be displayed to the user. It is recommended to use this function only when the execution should not continue any further. It is not recommended to call this function very often and normally you should try to handle as many errors as possible silently.
package | BuddyPress |
---|
string
Error message.
string
Error title.
string
array
Optional arguments to control behaviour.
backpress_get_transient($transient)
backpress_set_transient($transient, $value, $expiration = 0
)
backpress_update_option($option, $value)
backslashit(string $string) : string
package | BuddyPress |
---|---|
since | 0.71 |
string
Value to which backslashes will be added.
string
String with backslashes inserted.bp_account_was_activated() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the activation_complete global flag has been set,
otherwise false.bp_action_variable(integer $position = 0
) : string | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
The key of the action_variables array that you want.
string
boolean
$action_variable The value of that position in the
array, or false if not found.bp_action_variables() : array | boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
array
boolean
$action_variables The action variables array, or false
if the array is empty.bp_actions()
Attach potential template actions, such as catching form requests or routing custom URLs.
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activation()
Runs on BuddyPress activation.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_activities() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
Returns true when activities are found.bp_activities_member_rss_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 1.2.0 |
bp_activities_no_activity()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
bp_activity_action(array $args = array()
)
bp_activity_action_allowed_html() : array
bp_activity_action_delete_activity(integer $activity_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
integer
Activity id to be deleted. Defaults to 0.
boolean
False on failure.bp_activity_action_favorites_feed() : boolean
bp_activity_action_friends_feed() : boolean
bp_activity_action_mark_favorite() : boolean
bp_activity_action_mentions_feed() : boolean
bp_activity_action_my_groups_feed() : boolean
bp_activity_action_name()
Just a wrapper for bp_activity_type().
package | BuddyPress |
---|---|
since | 1.2.0 |
deprecated | 1.5.0 |
todo | Properly deprecate in favor of bp_activity_type() and remove redundant echo |
bp_activity_action_permalink_router() : boolean
bp_activity_action_personal_feed() : boolean
bp_activity_action_post_comment() : boolean
bp_activity_action_post_update() : boolean
bp_activity_action_remove_favorite() : boolean
bp_activity_action_sitewide_feed() : boolean
bp_activity_action_spam_activity(integer $activity_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
Activity id to be deleted. Defaults to 0.
boolean
False on failure.bp_activity_add(array|string $args = ''
) : \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 2.6.0 Added 'error_type' parameter to $args. |
array
string
{ An array of arguments. @type int|bool $id Pass an activity ID to update an existing item, or false to create a new item. Default: false. @type string $action Optional. The activity action/description, typically something like "Joe posted an update". Values passed to this param will be stored in the database and used as a fallback for when the activity item's format_callback cannot be found (eg, when the component is disabled). As long as you have registered a format_callback for your $type, it is unnecessary to include this argument - BP will generate it automatically. See {@link bp_activity_set_action()}. @type string $content Optional. The content of the activity item. @type string $component The unique name of the component associated with the activity item - 'groups', 'profile', etc. @type string $type The specific activity type, used for directory filtering. 'new_blog_post', 'activity_update', etc. @type string $primary_link Optional. The URL for this item, as used in RSS feeds. Defaults to the URL for this activity item's permalink page. @type int|bool $user_id Optional. The ID of the user associated with the activity item. May be set to false or 0 if the item is not related to any user. Default: the ID of the currently logged-in user. @type int $item_id Optional. The ID of the associated item. @type int $secondary_item_id Optional. The ID of a secondary associated item. @type string $date_recorded Optional. The GMT time, in Y-m-d h:i:s format, when the item was recorded. Defaults to the current time. @type bool $hide_sitewide Should the item be hidden on sitewide streams? Default: false. @type bool $is_spam Should the item be marked as spam? Default: false. @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'. }
\WP_Error
boolean
integer
The ID of the activity on success. False on error.bp_activity_add_notification_for_synced_blog_comment(integer $activity_id, \WP_Comment $post_type_comment, array $activity_args, object $activity_post_object)
Requires "activity stream commenting on posts and comments" to be enabled.
package | BuddyPress |
---|---|
since | 2.6.0 |
integer
The activity comment ID.
\WP_Comment
WP Comment object.
array
Activity comment arguments.
object
The post type tracking args object.
bp_activity_add_user_favorite(integer $activity_id, integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the activity item being favorited.
integer
ID of the user favoriting the activity item.
boolean
bp_activity_adjust_mention_count(integer $activity_id= 0
, string $action= 'add'
) : boolean
This function is useful if you only have the activity ID handy and you haven't parsed an activity item for @mentions yet.
Currently, only used in bp_activity_delete().
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
The unique id for the activity item.
string
Can be 'delete' or 'add'. Defaults to 'add'.
boolean
bp_activity_admin_delete()
package | BuddyPress |
---|---|
since | 7.0.0 |
bp_activity_admin_get_activity_actions() : array
Format is [activity_type] => Pretty name for activity type.
package | BuddyPress |
---|---|
since | 2.0.0 |
array
$actionsbp_activity_admin_index()
package | BuddyPress |
---|---|
since | 1.6.0 |
global | BP_Activity_List_Table $bp_activity_list_table Activity screen list table. |
global | string $plugin_page The current plugin page. |
bp_activity_admin_load()
Does the following:
package | BuddyPress |
---|---|
since | 1.6.0 |
global | BP_Activity_List_Table $bp_activity_list_table Activity screen list table. |
bp_activity_admin_reply()
Processes requests to add new activity comments, and echoes HTML for a new table row.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_activity_at_mention_add_notification(object $activity, string $subject, string $message, string $content, integer $receiver_user_id)
Hooked to the 'bp_activity_sent_mention_email' action, we piggy back off the existing email code for now, since it does the heavy lifting for us. In the future when we separate emails from Notifications, this will need its own 'bp_activity_at_name_send_emails' equivalent helper function.
package | BuddyPress |
---|---|
since | 1.9.0 |
object
Activity object.
string
(not used) Notification subject.
string
(not used) Notification message.
string
(not used) Notification content.
integer
ID of user receiving notification.
bp_activity_at_mention_delete_notification(array $activity_ids_deleted = array()
)
bp_activity_at_name_filter(string $content, integer $activity_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
string
The contents of a given item.
integer
The activity id. Deprecated.
string
$content Content filtered for mentions.bp_activity_at_name_filter_updates(\BP_Activity_Activity $activity)
If mentions are found, replace @mention text with user links and add our hook to send mention notifications after the activity item is saved.
package | BuddyPress |
---|---|
since | 1.5.0 |
\BP_Activity_Activity
Activity Object.
bp_activity_at_name_send_emails(\BP_Activity_Activity $activity)
package | BuddyPress |
---|---|
since | 1.7.0 |
\BP_Activity_Activity
The BP_Activity_Activity object.
bp_activity_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for description of arguments. |
array
string
See {@link bp_get_activity_avatar()} for description.
bp_activity_can_comment() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
$can_comment True if item can receive comments.bp_activity_can_comment_reply(boolean|object $comment = false
) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
object
Activity comment.
boolean
$can_comment True if comment can receive comments,
otherwise false.bp_activity_can_favorite() : boolean
Defaults to true, but can be modified by plugins.
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if comment can receive comments.bp_activity_catch_transition_post_type_status(string $new_status, string $old_status, object $post)
package | BuddyPress |
---|---|
since | 2.2.0 |
todo | Support untrashing better. |
string
New status for the post.
string
Old status for the post.
object
Post data.
bp_activity_check_blacklist_keys(\BP_Activity_Activity $activity)
Use bp_activity_check_disallowed_keys() instead.
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 7.0.0 |
\BP_Activity_Activity
The activity object to check.
bp_activity_check_disallowed_keys(\BP_Activity_Activity $activity)
package | BuddyPress |
---|---|
since | 7.0.0 |
\BP_Activity_Activity
The activity object to check.
bp_activity_check_exists_by_content(string $content) : integer | null
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The content to filter by.
integer
null
The ID of the located activity item. Null if none is found.bp_activity_check_moderation_keys(\BP_Activity_Activity $activity)
package | BuddyPress |
---|---|
since | 1.6.0 |
\BP_Activity_Activity
The activity object to check.
bp_activity_clear_cache_for_activity(\BP_Activity_Activity $activity)
bp_activity_clear_cache_for_deleted_activity(array $deleted_ids)
bp_activity_clear_new_mentions(integer $user_id)
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
The id of the user whose unread mentions are being reset.
bp_activity_comment_cancel_url()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_activity_comment_content()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_date_recorded()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_date_recorded_raw()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_activity_comment_delete_link()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_depth(object|integer $comment = 0
)
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 2.8.0 Added $comment as a parameter. |
object
integer
Object of the activity comment or activity comment ID. Usually unnecessary when used in activity comment loop.
bp_activity_comment_form_action()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_comment_form_nojs_display()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_comment_id()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_name()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_permalink()
package | BuddyPress |
---|---|
since | 1.8.0 |
bp_activity_comment_reply_add_notification(\BP_Activity_Activity $activity_comment, integer $comment_id, integer $commenter_id)
package | BuddyPress |
---|---|
since | 2.6.0 |
\BP_Activity_Activity
The parent activity.
integer
ID for the newly received comment.
integer
ID of the user who made the comment.
bp_activity_comment_user_id()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comment_user_link()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_comments(array|string $deprecated = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
array
string
See {@link bp_activity_get_comments} for description.
bp_activity_comments_user_avatars(array $args = array()
)
Use this function to easily output activity comment authors' avatars.
Avatars are wrapped in
package | BuddyPress |
---|---|
since | 1.7.0 |
see | for a description of arguments. |
array
See {@link bp_core_fetch_avatar()}.
bp_activity_content()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 1.5.0 |
todo | properly deprecate this function. |
bp_activity_create_summary(string $content, array $activity) : string
More than just a simple excerpt, the summary could contain oEmbeds and other types of media. Currently, it's only used for blog post items, but it will probably be used for all types of activity in the future.
package | BuddyPress |
---|---|
since | 2.3.0 |
string
The content of the activity item.
array
The data passed to bp_activity_add() or the values from an Activity obj.
string
$summarybp_activity_current_comment() : object | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
object
boolean
$current_comment The activity comment currently being
displayed. False on failure.bp_activity_date_recorded()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_delete(array|string $args = ''
) : boolean
If you're looking to hook into one action that provides the ID(s) of the activity/activities deleted, then use:
add_action( 'bp_activity_deleted_activities', 'my_function' );
The action passes one parameter that is a single activity ID or an array of activity IDs depending on the number deleted.
If you are deleting an activity comment please use bp_activity_delete_comment();
package | BuddyPress |
---|---|
since | 1.0.0 |
see | For more information on accepted arguments. |
array
string
To delete specific activity items, use $args = array( 'id' => $ids ); Otherwise, to use filters for item deletion, the argument format is the same as BP_Activity_Activity::get(). See that method for a description.
boolean
bp_activity_delete_by_activity_id(integer $activity_id) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
integer
ID of the activity item to be deleted.
boolean
bp_activity_delete_by_content(integer $user_id, string $content, string $component, string $type) : boolean
You should use bp_activity_delete() instead.
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 1.2.0 |
integer
The user id.
string
The activity id.
string
The activity component.
string
The activity type.
boolean
bp_activity_delete_by_item_id(array|string $args = ''
) : boolean
You should use bp_activity_delete() instead.
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 1.2.0 |
array
string
See BP_Activity_Activity::get for a description of accepted arguments.
boolean
bp_activity_delete_children(integer $activity_id, integer $comment_id)
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
The ID of the "root" activity, ie the comment's oldest ancestor.
integer
The ID of the comment to be deleted.
bp_activity_delete_comment(integer $activity_id, integer $comment_id) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
todo | Why is an activity id required? We could look this up. |
todo | Why do we encourage users to call this function directly? We could just as easily examine the activity type in bp_activity_delete() and then call this function with the proper arguments if necessary. |
integer
The ID of the "root" activity, ie the comment's oldest ancestor.
integer
The ID of the comment to be deleted.
boolean
bp_activity_delete_for_user_by_component(integer $user_id, string $component) : boolean
You should use bp_activity_delete() instead.
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 1.2.0 |
integer
The user id.
string
The activity component.
boolean
bp_activity_delete_url()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_activity_directory_permalink()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_do_heartbeat() : boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
boolean
True if activity heartbeat is enabled, otherwise false.bp_activity_do_mentions() : boolean
The Mentions feature does a number of things, all of which will be turned off if you disable mentions:
Mentions are enabled by default. To disable, put the following line in bp-custom.php or your theme's functions.php file:
add_filter( 'bp_activity_do_mentions', '__return_false' );
package | BuddyPress |
---|---|
since | 1.8.0 |
boolean
$retval True to enable mentions, false to disable.bp_activity_feed_item_description()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_activity_filter_favorites_scope(array $retval= array()
, array $filter= array()
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
$retvalbp_activity_filter_just_me_scope(array $retval= array()
, array $filter= array()
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
$retvalbp_activity_filter_kses(string $content) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The activity content.
string
$content Filtered activity content.bp_activity_filter_links(array|boolean $args = false
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for description of parameters. |
array
boolean
See {@link bp_get_activity_filter_links()} for description.
bp_activity_filter_mentions_scope(array $retval= array()
, array $filter= array()
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
$retvalbp_activity_find_mentions(string $content) : array | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The content of the activity, usually found in $activity->content.
array
boolean
Associative array with user ID as key and username as
value. Boolean false if no mentions found.bp_activity_format_activity_action_activity_comment(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
$actionbp_activity_format_activity_action_activity_update(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
$actionbp_activity_format_activity_action_custom_post_type_comment(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Static activity action.
object
Activity data object.
string
bp_activity_format_activity_action_custom_post_type_post(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.2.0 |
string
Static activity action.
object
Activity data object.
string
$actionbp_activity_format_notifications(string $action, integer $item_id, integer $secondary_item_id, integer $total_items, string $format= 'string'
, integer $id= 0
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The type of activity item. Just 'new_at_mention' for now.
integer
The activity ID.
integer
In the case of at-mentions, this is the mentioner's ID.
integer
The total number of notifications to format.
string
'string' for notification HTML link or 'array' for separate link and text.
integer
Optional. The notification ID.
string
$return Formatted @mention notification.bp_activity_generate_action_string(object $activity) : string | boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
object
Activity data object.
string
boolean
Returns false if no callback is found, otherwise returns
the formatted action string.bp_activity_generated_content_part(string $property = ''
)
package | BuddyPress |
---|---|
since | 10.0.0 |
string
The name of the property to check into the generated content.
bp_activity_get(array|string $args = ''
) : array
The bp_activity_get() function shares all arguments with BP_Activity_Activity::get(). The following is a list of bp_activity_get() parameters that have different default values from BP_Activity_Activity::get() (value in parentheses is the default for the bp_activity_get()).
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.4.0 Introduced the `$fields` parameter. |
since | 15.0.0 Introduced the `cache_results` parameter. |
see | For more information on accepted arguments and the format of the returned value. |
array
string
See BP_Activity_Activity::get() for description.
array
$activity See BP_Activity_Activity::get() for description.bp_activity_get_action(string $component_id, string $key) : string | boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The unique string ID of the component.
string
The action key.
string
boolean
Action value if found, otherwise false.bp_activity_get_actions() : object
bp_activity_get_actions_for_context(string $context = ''
) : array
package | BuddyPress |
---|---|
since | 2.8.0 |
string
Optional. Name of the context. Defaults to the current context.
array
bp_activity_get_activity_id(array|string $args = ''
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
see | For more information on accepted arguments. |
array
string
See BP_Activity_Activity::get() for description.
integer
$activity_id The ID of the activity item found.bp_activity_get_comment_count(array|null $deprecated = null
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
array
null
Deprecated.
integer
$count The activity comment count.bp_activity_get_comment_depth(object|integer $comment = 0
) : integer
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 2.8.0 Added $comment as a parameter. |
object
integer
Object of the activity comment or activity comment ID. Usually unnecessary when used in activity comment loop.
integer
bp_activity_get_comments(string $deprecated = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
todo | Given that checks for children already happen in bp_activity_recurse_comments(), this function can probably be streamlined or removed. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
Unused. Left over from an earlier implementation.
boolean
bp_activity_get_comments_user_ids() : boolean | array
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Activity_Template $activities_template The Activity template object. |
boolean
array
An array of IDs, or false if none are found.bp_activity_get_current_context() : string
The "context" is the current view type, corresponding roughly to the current component. Use this context to determine which activity actions should be permitted in the filter dropdown.
package | BuddyPress |
---|---|
since | 2.8.0 |
string
Activity context. 'member', 'member_groups', 'group', 'activity'.bp_activity_get_excerpt_length() : integer
bp_activity_get_generated_content_part(string $property= ''
, string $return= ''
) : boolean | string
package | BuddyPress |
---|---|
since | 10.0.0 |
string
The name of the property to check into the generated content.
string
Whether to return the property value or a boolean to check it exists.
boolean
string
A boolean when requested, false if there is no value, the HTML output otherwise.bp_activity_get_js_dependencies(array $js_handles = array()
) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
array
The original dependencies.
array
$js_handles The new dependencies.bp_activity_get_last_updated() : string
bp_activity_get_moderated_activity_types() : array
bp_activity_get_permalink(integer $activity_id, object|boolean $activity_obj = false
) : string
When only the $activity_id param is passed, BP has to instantiate a new BP_Activity_Activity object. To save yourself some processing overhead, be sure to pass the full $activity_obj parameter as well, if you already have it available.
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
The unique id of the activity object.
object
boolean
Optional. The activity object.
string
$link Permalink for the activity item.bp_activity_get_post_type_tracking_args(string $post_type) : object
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 2.5.0 Add post type comments tracking args |
string
Name of the post type.
object
The tracking arguments of the post type.bp_activity_get_post_types_tracking_args() : array
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 2.5.0 Include post type comments tracking args if needed |
array
List of post types with their tracking arguments.bp_activity_get_sitewide(string|array $args = ''
) : object
You should use bp_activity_get() instead
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 1.2.0 |
string
array
object
$activity The activity/activities objectbp_activity_get_specific(array|string $args = ''
) : array
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 15.0.0 Introduced the `cache_results` parameter. |
see | For more information on accepted arguments. |
array
string
{ An array of arguments. All arguments and defaults are shared with BP_Activity_Activity::get(), except for the following: @type string|int|array Single activity ID, comma-separated list of IDs, or array of IDs. }
array
See BP_Activity_Activity::get() for description.bp_activity_get_types() : array
bp_activity_get_types_list() : array
bp_activity_get_user_favorites(integer $user_id = 0
) : array
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user whose favorites are being queried.
array
IDs of the user's favorite activity items.bp_activity_get_user_mentionname(integer|string $user_id) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
string
ID of the user to get @-mention name for.
string
$mentionname User name appropriate for @-mentions.bp_activity_get_userid_from_mentionname(string $mentionname) : integer | boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
global | wpdb $wpdb WordPress database object. |
string
Username of user in @-mentions.
integer
boolean
ID of the user, if one is found. Otherwise false.bp_activity_ham_all_user_data(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
global | wpdb $wpdb WordPress database object. |
integer
ID of the user whose activity is being hammed.
boolean
bp_activity_has_content() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 10.0.0 Generate a richer content for activity types supporting the feature. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
True if activity has content, false otherwise.bp_activity_has_directory() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if activity directory page is found, otherwise false.bp_activity_has_generated_content_part(string $property = ''
) : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
string
The name of the property to check into the generated content.
boolean
True if the property is not empty. False otherwise.bp_activity_has_more_items() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
$has_more_items True if more items, false if not.bp_activity_heartbeat_last_recorded(array $response= array()
, array $data= array()
) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
array
Array containing Heartbeat API response.
array
Array containing data for Heartbeat API response.
array
$responsebp_activity_heartbeat_strings(array $strings = array()
) : array
bp_activity_hide_user_activity(integer $user_id) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
The ID of the user whose activity is being hidden.
boolean
bp_activity_is_favorite()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_is_feed_enable(string $feed_id = ''
)
package | BuddyPress |
---|---|
since | 8.0.0 |
since | 12.0.0 Added bp_current_user_can( 'bp_view' ) check. |
string
The feed identifier. Possible values are: 'sitewide', 'personal', 'friends', 'mygroups', 'mentions', 'favorites'.
bp_activity_latest_update(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of parameters. |
integer
See {@link bp_get_activity_latest_update()} for description.
bp_activity_make_nofollow_filter(string $text) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
string
Activity text.
string
$text Text with rel=nofollow added to any links.bp_activity_make_nofollow_filter_callback(array $matches) : string
package | BuddyPress |
---|---|
since | 1.2.0 Adds the nofollow rel attribute. |
since | 7.0.0 Adds the ugc rel attribute. |
array
Items matched by preg_replace_callback() in bp_activity_make_nofollow_filter().
string
$text Link with rel=nofollow added.bp_activity_mark_as_ham(\BP_Activity_Activity $activity, string $source = 'by_a_person'
)
package | BuddyPress |
---|---|
since | 1.6.0 |
\BP_Activity_Activity
The activity item to be hammed. Passed by reference.
string
Optional. Default is "by_a_person" (ie, a person has manually marked the activity as spam). BP core also accepts 'by_akismet'.
bp_activity_mark_as_spam(\BP_Activity_Activity $activity, string $source = 'by_a_person'
)
package | BuddyPress |
---|---|
since | 1.6.0 |
todo | We should probably save $source to activity meta. |
\BP_Activity_Activity
The activity item to be spammed.
string
Optional. Default is "by_a_person" (ie, a person has manually marked the activity as spam). BP core also accepts 'by_akismet'.
bp_activity_maybe_load_mentions_scripts() : boolean
bp_activity_member_display_name()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_activity_new_comment(array|string $args = ''
) : \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.5.0 Add a new possible parameter $skip_notification for the array of arguments. Add the $primary_link parameter for the array of arguments. |
since | 2.6.0 Added 'error_type' parameter to $args. |
array
string
{ An array of arguments. @type int $id Optional. Pass an ID to update an existing comment. @type string $content The content of the comment. @type int $user_id Optional. The ID of the user making the comment. Defaults to the ID of the logged-in user. @type int $activity_id The ID of the "root" activity item, ie the oldest ancestor of the comment. @type int $parent_id Optional. The ID of the parent activity item, ie the item to which the comment is an immediate reply. If not provided, this value defaults to the $activity_id. @type string $primary_link Optional. the primary link for the comment. Defaults to an empty string. @type bool $skip_notification Optional. false to send a comment notification, false otherwise. Defaults to false. @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'. }
\WP_Error
boolean
integer
The ID of the comment on success, otherwise false.bp_activity_new_comment_notification(integer $comment_id= 0
, integer $commenter_id= 0
, array $params= array()
)
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.5.0 Updated to use new email APIs. |
integer
The comment id.
integer
The ID of the user who posted the comment.
array
{@link bp_activity_new_comment()}.
bp_activity_new_comment_notification_helper(integer $comment_id, array $params)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the comment being notified about.
array
Parameters to use with notification.
bp_activity_newest_class(string $classes = ''
) : string
We use these classes to avoid pagination issues when items are loaded dynamically into the activity stream.
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Array of classes for most recent activity item.
string
$classesbp_activity_parent_content(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for a description of arguments. |
array
string
See {@link bp_get_activity_parent_content} for description.
bp_activity_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_activity_post_type_comment(integer $comment_id= 0
, boolean $is_approved= true
, object|null $activity_post_object= null
) : null | \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 2.5.0 |
integer
ID of the comment.
boolean
Whether the comment is approved or not.
object
null
The post type tracking args object.
null
\WP_Error
boolean
integer
The ID of the activity on success. False on error.bp_activity_post_type_get_tracking_arg(string $activity_type, string $arg = ''
) : mixed
package | BuddyPress |
---|---|
since | 2.5.0 |
string
the activity type.
string
the key of the tracking argument.
mixed
the value of the tracking arg, false if not found.bp_activity_post_type_publish(integer $post_id= 0
, \WP_Post|null $post= null
, integer $user_id= 0
) : null | \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
ID of the new post.
\WP_Post
null
Post object.
integer
ID of the post author.
null
\WP_Error
boolean
integer
The ID of the activity on success. False on error.bp_activity_post_type_remove_comment(integer $comment_id= 0
, object|null $activity_post_object= null
) : boolean
package | BuddyPress |
---|---|
since | 2.5.0 |
integer
ID of the comment.
object
null
The post type tracking args object.
boolean
bp_activity_post_type_unpublish(integer $post_id= 0
, \WP_Post|null $post= null
) : boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
ID of the post being unpublished.
\WP_Post
null
Post object.
boolean
bp_activity_post_type_update(\WP_Post|null $post = null
) : null | \WP_Error | boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
\WP_Post
null
Post item.
null
\WP_Error
boolean
True on success, false on failure.bp_activity_post_update(array|string $args = ''
) : integer | boolean | \WP_Error
package | BuddyPress |
---|---|
since | 1.2.0 |
array
string
{ An array of arguments. @type string $content The content of the activity update. @type int $user_id Optional. Defaults to the logged-in user. @type string $error_type Optional. Error type to return. Either 'bool' or 'wp_error'. Defaults to 'bool' for boolean. 'wp_error' will return a WP_Error object. }
integer
boolean
\WP_Error
$activity_id The activity id on success. On failure, either boolean false or WP_Error
object depending on the 'error_type' $args parameter.bp_activity_recurse_comment_count(object $comment, integer $count = 0
) : integer
This function recursively adds the total number of comments each activity child has, and returns them.
package | BuddyPress |
---|---|
since | 1.2.0 |
object
Activity comment object.
integer
The current iteration count.
integer
$count The activity comment count.bp_activity_recurse_comments(object $comment) : boolean | string
Note: The recursion itself used to happen entirely in this function. Now it is split between here and the comment.php template.
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
object
The activity object currently being recursed.
boolean
string
bp_activity_recurse_comments_activity_ids(array $activity= array()
, array $activity_ids= array()
) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
array
Array of activities generated from {@link bp_activity_get()}.
array
Used for recursion purposes in this function.
array
bp_activity_recurse_comments_user_ids(array $comments = array()
) : array
package | BuddyPress |
---|---|
since | 1.7.0 |
array
Array of {@link BP_Activity_Activity} items.
array
Array of user IDs.bp_activity_register_activity_actions()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_activity_register_personal_data_exporter(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_activity_remove_all_user_data(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
ID of the user whose activity is being deleted.
boolean
bp_activity_remove_all_user_data_on_delete_user(integer $user_id)
bp_activity_remove_screen_notifications(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.5.0 Add the $user_id parameter |
integer
The id of the user whose notifications are marked as read.
bp_activity_remove_screen_notifications_for_non_mentions()
In particular, 'update_reply' and 'comment_reply' notifications are handled here. See bp_activity_format_notifications() for more info.
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_activity_remove_screen_notifications_single_activity_permalink(\BP_Activity_Activity $activity)
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 3.2.0 Marks replies to parent update and replies to an activity comment as read. |
\BP_Activity_Activity
Activity object.
bp_activity_remove_user_favorite(integer $activity_id, integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the activity item being unfavorited.
integer
ID of the user unfavoriting the activity item.
boolean
bp_activity_render_latest_activities_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
global | BP_Activity_Template $activities_template The Activity template loop. |
array
The block attributes.
string
HTML output.bp_activity_reset_cache_incrementor() : boolean
Called whenever an activity item is created, updated, or deleted, this function effectively invalidates all cached results of activity queries.
package | BuddyPress |
---|---|
since | 2.7.0 |
boolean
bp_activity_reset_my_new_mentions()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_screen_notification_settings()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_screen_single_activity_permalink()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_secondary_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of arguments. |
array
string
See {@link bp_get_activity_secondary_avatar} for description.
bp_activity_secondary_item_id()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_activity_set_action(string $component_id, string $type, string $description, callable|boolean $format_callback= false
, string|boolean $label= false
, array $context= array()
, integer $position= 0
) : boolean
Activity actions are strings used to describe items in the activity stream, such as 'Joe became a registered member' or 'Bill and Susie are now friends'. Each activity type (such as 'new_member' or 'friendship_created') used by a component should be registered using this function.
While it's possible to post items to the activity stream whose types are not registered using bp_activity_set_action(), it is not recommended; unregistered types will not be displayed properly in the activity admin panel, and dynamic action generation (which is essential for multilingual sites, etc) will not work.
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The unique string ID of the component.
string
The action type.
string
The action description.
callable
boolean
Callback for formatting the action string.
string
boolean
String to describe this action in the activity stream filter dropdown.
array
Optional. Activity stream contexts where the filter should appear. Values: 'activity', 'member', 'member_groups', 'group'.
integer
Optional. The position of the action when listed in dropdowns.
boolean
False if any param is empty, otherwise true.bp_activity_set_post_type_tracking_args(string $post_type= ''
, array $args= array()
) : boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
global | array $wp_post_types |
string
The name of the post type, as registered with WordPress. Eg 'post' or 'page'.
array
{ An associative array of tracking parameters. All items are optional. @type string $bp_activity_admin_filter String to use in the Dashboard > Activity dropdown. @type string $bp_activity_front_filter String to use in the front-end dropdown. @type string $bp_activity_new_post String format to use for generating the activity action. Should be a translatable string where %1$s is replaced by a user link and %2$s is the URL of the newly created post. @type string $bp_activity_new_post_ms String format to use for generating the activity action on Multisite. Should be a translatable string where %1$s is replaced by a user link, %2$s is the URL of the newly created post, and %3$s is a link to the site. @type string $component_id ID of the BuddyPress component to associate the activity item. @type string $action_id Value for the 'type' param of the new activity item. @type callable $format_callback Callback for formatting the activity action string. Default: 'bp_activity_format_activity_action_custom_post_type_post'. @type array $contexts The directory contexts in which the filter will show. Default: array( 'activity' ). @type array $position Position of the item in filter dropdowns. @type string $singular Singular, translatable name of the post type item. If no value is provided, it's pulled from the 'singular_name' of the post type. @type bool $activity_comment Whether to allow comments on the activity items. Defaults to true if the post type does not natively support comments, otherwise false. }
boolean
bp_activity_show_filters(string $context = ''
)
package | BuddyPress |
---|---|
since | 2.1.0 |
string
The current context. 'activity', 'member', 'member_groups', 'group'.
bp_activity_sitewide_feed()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_activity_spam_all_user_data(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
global | wpdb $wpdb WordPress database object. |
integer
ID of the user whose activity is being spammed.
boolean
bp_activity_thumbnail_content_images(string $content, string|boolean $link= false
, array|boolean $args= false
) : string
The format of items in the activity stream is such that we do not want to allow an arbitrary number of arbitrarily large images to be rendered. However, the activity stream is built to elegantly display a single thumbnail corresponding to the activity comment. This function looks through the content, grabs the first image and converts it to a thumbnail, and removes the rest of the images from the string.
As of BuddyPress 2.3, this function is no longer in use.
package | BuddyPress |
---|---|
since | 1.2.0 |
string
The content of the activity item.
string
boolean
Optional. The unescaped URL that the image should link to. If absent, the image will not be a link.
array
boolean
Optional. The args passed to the activity creation function (eg bp_blogs_record_activity()).
string
$content The content with images stripped and replaced with a
single thumb.bp_activity_total_favorites_for_user(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user whose favorite count is being requested.
integer
Total favorite count for the user.bp_activity_transition_post_type_comment_status(string $new_status, string $old_status, \WP_Comment $comment)
package | BuddyPress |
---|---|
since | 2.5.0 |
string
New comment status.
string
Previous comment status.
\WP_Comment
Comment data.
bp_activity_truncate_entry(string $text, array $args = array()
) : string
This method can only be used inside the Activity loop.
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.6.0 Added $args parameter. |
global | BP_Activity_Template $activities_template The Activity template loop. |
string
The original activity entry text.
array
{ Optional parameters. See $options argument of {@link bp_create_excerpt()} for all available parameters. }
string
$excerpt The truncated text.bp_activity_type_part() : string
package | BuddyPress |
---|---|
since | 10.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity type template part name.bp_activity_type_supports(string $activity_type= ''
, string $feature= ''
) : boolean
package | BuddyPress |
---|---|
since | 2.5.0 |
string
The activity type to check.
string
The feature to check. Currently supports: 'post-type-comment-tracking', 'post-type-comment-reply' & 'comment-reply'. See inline doc for more info.
boolean
bp_activity_types_list(string $output= 'select'
, array|string $args= ''
)
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Optional. Either 'select' or 'checkbox'. Default: 'select'.
array
string
{ Optional extra arguments. @type string $checkbox_name When returning checkboxes, sets the 'name' attribute. @type array|string $selected A list of types that should be checked/ selected. }
bp_activity_update_mention_count_for_user(integer $user_id, integer $activity_id, string $action = 'add'
) : boolean
This function should be used when you've already parsed your activity item for @mentions.
package | BuddyPress |
---|---|
since | 1.7.0 |
integer
The user ID.
integer
The unique ID for the activity item.
string
'delete' or 'add'. Default: 'add'.
boolean
bp_activity_update_reply_add_notification(\BP_Activity_Activity $activity, integer $comment_id, integer $commenter_id)
package | BuddyPress |
---|---|
since | 2.6.0 |
\BP_Activity_Activity
The original activity.
integer
ID for the newly received comment.
integer
ID of the user who made the comment.
bp_activity_user_can_delete(false|\BP_Activity_Activity $activity = false
) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
false
\BP_Activity_Activity
Optional. Falls back on the current item in the loop.
boolean
True if can delete, false otherwise.bp_activity_user_can_mark_spam() : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
True if user is allowed to mark activity items as spam.bp_activity_user_can_read(\BP_Activity_Activity $activity, integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
\BP_Activity_Activity
Activity object.
integer
User ID.
boolean
bp_add_caps()
This is called on plugin activation.
package | BuddyPress |
---|---|
since | 1.6.0 |
global | WP_Roles $wp_roles WordPress role management object. |
bp_add_cover_image_inline_css(boolean $return = false
) : null | array | false
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
True to get the inline css.
null
array
false
The inline css or an associative array containing
the css rules and the style handle.bp_add_mentions_on_tinymce_init(array $settings, string $editor_id) : array
package | BuddyPress |
---|---|
since | 2.3.3 |
array
An array with TinyMCE config.
string
Unique editor identifier, e.g. 'content'.
array
$mceInit An array with TinyMCE config.bp_add_option(string $option_name, mixed $value) : boolean
This is a wrapper for add_blog_option(), which in turn stores settings data on the appropriate blog, given your current setup.
package | BuddyPress |
---|---|
since | 2.0.0 |
string
The option key to be set.
mixed
The value to be set.
boolean
bp_add_optout(array $args = array()
) : false | integer
package | BuddyPress |
---|---|
since | 8.0.0 |
array
{ An array of arguments describing the new opt-out. @type string $email_address Email address of user who has opted out. @type int $user_id Optional. ID of user whose communication prompted the user to opt-out. @type string $email_type Optional. Name of the email type that prompted the user to opt-out. @type string $date_modified Optional. Specify a time, else now will be used. }
false
integer
False on failure, ID of new (or existing) opt-out if successful.bp_add_permastructs()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_add_rewrite_rules()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_add_roles()
This is called on plugin activation.
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 1.7.0 |
bp_add_template_stack_locations(array $stacks = array()
) : array
package | BuddyPress |
---|---|
since | 1.7.0 |
array
Array of template locations.
array
Array of all template locations registered so far.bp_admin_display_directory_states(array<mixed,string> $post_states= array()
, \WP_Post $post= null
)
package | BuddyPress |
---|---|
since | 10.0.0 |
deprecated | 12.0.0 |
array<mixed,string>
An array of post display states.
\WP_Post
The current post object.
bp_admin_edit_available_addons_properties($addons, string $action, object $args)
package | BuddyPress |
---|---|
since | 15.0.0 |
string
The type of information being requested from the Plugin Installation API.
object
Plugin API arguments.
bp_admin_email_add_codex_notice()
package | BuddyPress |
---|---|
since | 2.5.0 |
deprecated | 14.0.0 |
bp_admin_email_maybe_add_translation_notice()
If BuddyPress installs before its translations are in place, tell people how to reinstall the emails so they have their contents in their site's language.
package | BuddyPress |
---|---|
since | 2.5.0 |
bp_admin_enqueue_scripts(string $hook_suffix = ''
)
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The current admin page, passed to admin_enqueue_scripts.
bp_admin_invitations_table() : array
Migrate outstanding group invitations if needed.
package | BuddyPress |
---|---|
since | 6.0.0 |
global | wpdb $wpdb WordPress database object. |
array
bp_admin_list_table_current_bulk_action() : string
WP_List_Tables have bulk actions at the top and at the bottom of the tables, and the inputs have different keys in the $_REQUEST array. This function reconciles the two values and returns a single action being performed.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
bp_admin_reinstall_emails() : array
bp_admin_repair_blog_records() : array
bp_admin_repair_blog_site_icons() : array
bp_admin_repair_count_members() : array
bp_admin_repair_friend_count() : array
bp_admin_repair_group_count() : array
bp_admin_repair_handler()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_admin_repair_last_activity()
Re-runs the migration from usermeta introduced in BP 2.0.
package | BuddyPress |
---|---|
since | 2.0.0 |
deprecated | 12.4.0 |
bp_admin_sanitize_callback_blogforum_comments(boolean $value = false
) : integer
In the UI, a checkbox asks whether you'd like to enable post/comment activity comments. For legacy reasons, the option that we store is 1 if these comments are disabled. So we use this function to flip the boolean before saving the intval.
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
Whether or not to sanitize.
integer
bp_admin_sanitize_callback_community_visibility(mixed $saved_value) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
mixed
The value passed to the save function.
array
bp_admin_separator()
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 14.0.0 Added 'bp_admin_separator' filter. |
global | array $menu |
bp_admin_setting_callback_account_deletion()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_admin_setting_callback_avatar_uploads()
package | BuddyPress |
---|---|
since | 1.6.0 |
since | 6.0.0 Setting has been moved into the Members section. |
bp_admin_setting_callback_blogforum_comments()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_admin_setting_callback_community_visibility()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_admin_setting_callback_cover_image_uploads()
package | BuddyPress |
---|---|
since | 2.4.0 |
since | 6.0.0 Setting has been moved into the Members section. |
bp_admin_setting_callback_group_activity_deletions()
package | BuddyPress |
---|---|
since | 14.0.0 |
bp_admin_setting_callback_group_avatar_uploads()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_admin_setting_callback_group_cover_image_uploads()
package | BuddyPress |
---|---|
since | 2.4.0 |
bp_admin_setting_callback_group_creation()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_admin_setting_callback_heartbeat()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_admin_setting_callback_members_invitations()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_admin_setting_callback_membership_requests()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_admin_setting_callback_profile_sync()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_admin_setting_callback_theme_package_id()
package | BuddyPress |
---|
bp_admin_tools_feedback(string $message, string|boolean $html_class = false
) : false | \Closure
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Feedback message.
string
boolean
Unused. Defaults to false.
false
\Closure
bp_admin_url(string $path= ''
, string $scheme= 'admin'
)
package | BuddyPress |
---|---|
since | 1.5.0 |
see | For description of parameters. |
string
See {@link bp_get_admin_url()}.
string
See {@link bp_get_admin_url()}.
bp_after_setup_theme()
Piggy-back action for BuddyPress-specific theme actions once the theme has been set up and the theme's functions.php has loaded.
Hooked to 'after_setup_theme' with a priority of 100. This allows plenty of time for other themes to load their features, such as BuddyPress support, before our theme compatibility layer kicks in.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_ajax_action_is_registered(string $ajax_action = ''
) : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The ajax action to check.
boolean
True if the ajax action is registered. False otherwisebp_ajax_get_suggestions()
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 4.0.0 Moved here to make sure this function is available even if the Activity component is not active. |
bp_ajax_querystring(string|boolean $object = false
) : string
For the most part this will be filtered in a theme's functions.php for example in the default theme it is filtered via bp_dtheme_ajax_querystring().
By using this template tag in the templates it will stop them from showing errors if someone copies the templates from the default theme into another WordPress theme without coping the functions from functions.php.
package | BuddyPress |
---|---|
since | 1.2.0 |
string
boolean
Current template component.
string
The AJAX querystring.bp_ajax_register_action(string $ajax_action = ''
) : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The ajax action needing the BP URI globals to be set.
boolean
True if the ajax action was registered. False otherwise.bp_allow_access_to_registration_pages() : boolean
bp_allowed_themes(array $themes) : array
Filter the allowed themes list for BuddyPress-specific themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
array
The path of the template to include.
array
bp_alpha_sort_by_key(array $items, string|integer $key) : array
For instance, if you have an array of WordPress post objects, you can sort them by post_name as follows: $sorted_posts = bp_alpha_sort_by_key( $posts, 'post_name' );
package | BuddyPress |
---|---|
since | 1.9.0 |
array
The items to be sorted. Its constituent items can be either associative arrays or objects.
string
integer
The array index or property name to sort by.
array
$items The sorted array.bp_are_previous_group_creation_steps_complete(string $step_slug) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The group creation step's slug.
boolean
bp_attachements_get_mime_type(string $file = ''
) : false | string
package | BuddyPress |
---|---|
since | 10.2.0 |
deprecated | 11.0.0 replaced by `bp_attachments_get_mime_type()` |
string
Absolute path of a file or directory.
false
string
False if the mime type is not supported by WordPress.
The mime type of a file or 'directory' for a directory.bp_avatar_ajax_delete() : string | null
package | BuddyPress |
---|---|
since | 2.3.0 |
string
null
A JSON object containing success data if the avatar was deleted,
error message otherwise.bp_avatar_ajax_delete_previous_avatar()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_avatar_ajax_recycle_previous_avatar()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_avatar_ajax_set()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_avatar_delete_link()
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 6.0.0 Moved from /bp-xprofile/bp-xprofile-template.php to this file. |
bp_avatar_get_avatars_history(integer $item_id= 0
, string $object= 'user'
, string $type= 'full'
) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
The item ID we need the avatar version for.
string
The object the item ID relates to.
string
Get the full
, thumb
or both
versions.
array
The list of previous uploaded avatars.bp_avatar_get_templates()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_avatar_get_version(integer $item_id= 0
, string $object= 'user'
, integer|string $timestamp= ''
, string $type= 'full'
) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
The item ID we need the avatar version for.
string
The object the item ID relates to.
integer
string
An integer Unix timestamp or a date string of the format 'Y-m-d h:i:s'.
string
The type of avatar we need. Possible values are thumb
and full
.
array
A list of matching results, an empty array if no avatars were found.bp_avatar_handle_capture(string $data= ''
, integer $item_id= 0
, string $retval= 'boolean'
) : array | boolean
package | BuddyPress |
---|---|
since | 2.3.0 |
since | 10.0.0 Adds the `$return` param to eventually return the crop result. |
string
Optional. Base64 encoded image.
integer
Optional. Item to associate.
string
Optional. Whether to get the crop array
or a boolean
. Defaults to boolean
.
array
boolean
bp_avatar_history_is_disabled() : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
True if avatar history is disabled. False otherwise.
Default: `false`.bp_avatar_is_front_edit() : boolean
bp_avatar_template_check()
If the "avatar templates" are not including the new template tag, this will help users to get the avatar UI.
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_avatar_to_crop_src()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_avatar_upload_form()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 2.1.0 |
bp_avatar_use_webcam() : boolean
package | BuddyPress |
---|---|
since | 2.3.0 |
global | bool $is_safari |
global | bool $is_IE |
boolean
True to load the Webcam Avatar UI part. False otherwise.bp_backcompat_admin_tabs(string $context= ''
, string $active_tab= ''
)
package | BuddyPress |
---|---|
since | 10.0.0 |
string
The context of use for the tabs.
string
The active tab.
bp_block_category(array $categories= array()
, string|\WP_Post|null $editor_name_or_post= null
)
package | BuddyPress |
---|---|
since | 5.0.0 |
since | 8.0.0 The `bp_block_category_post_types` filter has been deprecated. |
since | 12.0.0 This category is left for third party plugin but not used anymore. |
todo | deprecate. |
array
Array of block categories.
string
\WP_Post
null
Post being loaded.
bp_block_init_category_filter()
package | BuddyPress |
---|---|
since | 8.0.0 |
since | 12.0.0 This category is left for third party plugin but not used anymmore. |
deprecated | 14.0.0 |
bp_block_init_editor_settings_filter()
package | BuddyPress |
---|---|
since | 8.0.0 |
deprecated | 14.0.0 |
bp_block_render_login_form_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_blocks_editor_settings(array $editor_settings = array()
) : array
package | BuddyPress |
---|---|
since | 6.0.0 |
array
Default editor settings.
array
The editor settings including BP blocks specific ones.bp_blocks_preload_paths(array<mixed,string> $paths = array()
) : array<mixed,string>
package | BuddyPress |
---|---|
since | 9.0.0 |
array<mixed,string>
The Block Editors preload paths.
array<mixed,string>
The Block Editors preload paths.bp_blog_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
see | for description of arguments. |
array
string
See {@link bp_get_blog_avatar()}.
bp_blog_backcompat_create_nav_item()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_blog_class(array $classes = array()
)
bp_blog_hidden_fields()
This function detects whether 's', 'letter', or 'blogs_search' requests are currently being made (as in a URL parameter), and creates corresponding hidden fields.
package | BuddyPress |
---|
bp_blog_last_active(array $args = array()
)
bp_blog_latest_post(array $args = array()
)
bp_blog_latest_post_content()
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_blog_latest_post_featured_image(string $size = 'thumbnail'
)
package | BuddyPress |
---|---|
since | 1.7.0 |
see | For description of parameters. |
string
See {@link bp_get_blog_latest_post_featured_image()}.
bp_blog_latest_post_has_featured_image(string $thumbnail = 'thumbnail'
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Image version to return. 'thumbnail', 'medium', 'large', or 'post-thumbnail'. Default: 'thumbnail'.
boolean
True if the latest blog post from the current blog has a
featured image of the given size.bp_blog_latest_post_permalink()
package | BuddyPress |
---|---|
since | 1.7.0 |
see |
bp_blog_latest_post_title()
package | BuddyPress |
---|---|
since | 1.7.0 |
see |
bp_blog_signup_allowed()
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_blog_signup_enabled() : boolean
Returns true when blog creation is enabled for logged-in users only, or when it's enabled for new registrations.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 7.0.0 The function has been moved into `bp-blogs/bp-blogs-functions.php`. |
boolean
True if blog registration is enabled.bp_blogs() : boolean
package | BuddyPress |
---|---|
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
boolean
Returns true when blogs are found.bp_blogs_activity_comment_permalink(string $retval = ''
) : string
This is only done if activity commenting is allowed and whether the parent activity item is a 'new_blog_post' entry.
package | BuddyPress |
---|---|
since | 2.0.0 |
global | BP_Activity_Template $activities_template The Activity template object. |
string
The activity comment permalink.
string
bp_blogs_activity_comment_single_action(string $retval, \BP_Activity_Activity $activity) : string
This is only done if the activity comment is associated with a blog comment.
package | BuddyPress |
---|---|
since | 2.0.1 |
string
The activity action.
\BP_Activity_Activity
Activity object.
string
bp_blogs_activity_comment_single_permalink(string $retval, \BP_Activity_Activity $activity) : string
This is only done if the activity comment is associated with a blog comment.
package | BuddyPress |
---|---|
since | 2.0.1 |
string
The activity permalink.
\BP_Activity_Activity
Activity object.
string
bp_blogs_add_user_to_blog(integer $user_id, string|boolean $role= false
, integer $blog_id= 0
)
This function is hooked to several WordPress actions where blog roles are set/changed ('add_user_to_blog', 'profile_update', 'user_register'). It parses the changes, and records them as necessary in the BP blog tracker.
BuddyPress does not track blogs for users with the 'subscriber' role by default, though as of 2.1.0 you can filter 'bp_blogs_get_allowed_roles' to modify this behavior.
package | BuddyPress |
---|---|
global | wpdb $wpdb WordPress database object. |
integer
The ID of the user.
string
boolean
User's WordPress role for this blog ID.
integer
Blog ID user is being added to.
bp_blogs_blog_tabs()
Currently unused by BuddyPress.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
bp_blogs_can_comment_reply(boolean $retval, object|array $comment) : boolean
By default, disables replying to activity comments if the corresponding WP blog post no longer accepts comments.
This check uses a locally-cached value set in bp_blogs_disable_activity_commenting() via bp_blogs_setup_activity_loop_globals().
package | BuddyPress |
---|---|
since | 2.0.0 |
boolean
Are replies allowed for this activity reply.
object
array
The activity comment object.
boolean
bp_blogs_catch_transition_post_status(string $new_status, string $old_status, object $post)
Posts get new activity updates when (a) they are being published, and (b) they have not already been published. This enables proper posting for regular posts as well as scheduled posts, while preventing post bumping.
See #4090, #3746, #2546 for background.
package | BuddyPress |
---|---|
since | 2.0.0 |
deprecated | 2.2.0 |
todo | Support untrashing better. |
string
New status for the post.
string
Old status for the post.
object
Post data.
bp_blogs_clear_blog_object_cache(integer $blog_id= 0
, integer $user_id= 0
)
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
ID of the current blog.
integer
ID of the user whose blog cache should be cleared.
bp_blogs_comment_sync_activity_comment(integer|boolean $activity_id, \WP_Comment|null $comment= null
, array $activity_args= array()
, object|null $activity_post_object= null
)
package | BuddyPress |
---|---|
since | 2.5.0 |
integer
boolean
ID of recorded activity, or false if sync is active.
\WP_Comment
null
The comment object.
array
Array of activity arguments.
object
null
The post type tracking args object.
bp_blogs_comments_clauses_select_by_id(array $retval) : array
package | BuddyPress |
---|---|
since | 2.1.0 |
see |
array
Current SQL clauses in array format.
array
bp_blogs_comments_open(object $activity) : boolean
This mirrors the \comments_open() and _close_comments_for_old_post() functions, but for use with the BuddyPress activity stream to be as lightweight as possible.
By lightweight, we actually mirror a few of the blog's commenting settings to blogmeta and checks the values in blogmeta instead. This is to prevent multiple switch_to_blog() calls in the activity stream.
package | BuddyPress |
---|---|
since | 2.0.0 |
object
The BP_Activity_Activity object.
boolean
bp_blogs_confirm_blog_signup(string $domain, string $path, string $blog_title, string $user_name, string $user_email= ''
, string|array $meta= ''
, integer|null $blog_id= null
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.6.0 Introduced `$blog_id` parameter. |
string
The new blog's domain.
string
The new blog's path.
string
The new blog's title.
string
The user name of the user who created the blog. Unused.
string
The email of the user who created the blog. Unused.
string
array
Meta values associated with the new blog. Unused.
integer
null
ID of the newly created blog.
bp_blogs_creation_location(string $url) : string
package | BuddyPress |
---|---|
since | 1.6.0 |
string
The original URL (points to wp-signup.php by default).
string
The new URL.bp_blogs_default_avatar(string $avatar, array $params) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
string
Current avatar src.
array
Avatar params.
string
bp_blogs_delete_activity(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
see | for description of parameters. |
array
string
{ See {@link bp_activity_delete()} for complete description of arguments. The arguments listed here have different default values from bp_activity_add(). @type string $component Default: 'blogs'. }
boolean
bp_blogs_delete_activity_for_site(integer $blog_id)
bp_blogs_delete_new_blog_activity_for_site(integer $blog_id, $user_id = 0
)
bp_blogs_directory_permalink()
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
bp_blogs_disable_activity_commenting(boolean $retval) : boolean
If activity commenting is enabled for blog posts, we still need to disable commenting if:
package | BuddyPress |
---|---|
since | 2.0.0 |
global | BP_Activity_Template $activities_template The Activity template object. |
boolean
Is activity commenting enabled for this activity entry.
boolean
bp_blogs_format_activity_action_new_blog(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
Constructed activity action.bp_blogs_format_activity_action_new_blog_comment(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
Constructed activity action.bp_blogs_format_activity_action_new_blog_post(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
Constructed activity action.bp_blogs_format_clear_blog_cache(\BP_Blogs_Blog $recorded_blog_obj)
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 2.2.0 |
\BP_Blogs_Blog
The recorded blog, passed by 'bp_blogs_new_blog'.
bp_blogs_get_all_blogs(integer|null $limit= null
, integer|null $page= null
) : array
package | BuddyPress |
---|---|
see | for a description of parameters and return values. |
integer
null
See {@BP_Blogs_Blog::get_all()}.
integer
null
See {@BP_Blogs_Blog::get_all()}.
array
See {@BP_Blogs_Blog::get_all()}.bp_blogs_get_allowed_roles() : array
This added and was made filterable in BuddyPress 2.1.0 to make it easier to extend the functionality of the Blogs component.
package | BuddyPress |
---|---|
since | 2.1.0 |
array
bp_blogs_get_blogs(array|string $args = ''
) : array
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.0.0 Added $include_blog_ids, $update_meta_cache parameters |
since | 10.0.0 Added $date_query parameter |
see | for a description of arguments and return value. |
array
string
{ Arguments are listed here with their default values. For more information about the arguments, see {@link BP_Blogs_Blog::get()}. @type string $type Default: 'active'. @type int|bool $user_id Default: false. @type array $include_blog_ids Default: false. @type string|bool $search_terms Default: false. @type int $per_page Default: 20. @type int $page Default: 1. @type array $date_query Default: false. @type bool $update_meta_cache Whether to pre-fetch blogmeta. Default: true. }
array
See {@link BP_Blogs_Blog::get()}.bp_blogs_get_blogs_for_user(integer $user_id, boolean $show_hidden = false
) : array
package | BuddyPress |
---|---|
see | for a description of parameters and return values. |
integer
See {@BP_Blogs_Blog::get_blogs_for_user()}.
boolean
See {@BP_Blogs_Blog::get_blogs_for_user()}.
array
See {@BP_Blogs_Blog::get_blogs_for_user()}.bp_blogs_get_profile_stats(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
Before|after|user_id.
string
HTML for stats output.bp_blogs_get_random_blogs(integer|null $per_page= null
, integer|null $page= null
) : array
package | BuddyPress |
---|---|
see | for a description of parameters and return values. |
integer
null
See {@BP_Blogs_Blog::get()}.
integer
null
See {@BP_Blogs_Blog::get()}.
array
See {@BP_Blogs_Blog::get()}.bp_blogs_get_signup_form_submitted_vars() : array
package | BuddyPress |
---|---|
since | 7.0.0 |
array
An associative array containing the Blog signup's submitted vars.bp_blogs_get_site_icon_url(integer $blog_id= 0
, integer $size= 512
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
integer
The ID of the blog to get the site icon URL for.
integer
The size of the site icon.
string
The site icon URLbp_blogs_get_subdomain_base() : string
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 2.1.0 |
string
The base URL - eg, 'example.com' for site_url() example.com or www.example.com.bp_blogs_has_directory() : boolean
bp_blogs_is_blog_hidden(integer $blog_id) : boolean
package | BuddyPress |
---|---|
see | for a description of parameters and return values. |
integer
See {@BP_Blogs_Blog::is_hidden()}.
boolean
See {@BP_Blogs_Blog::is_hidden()}.bp_blogs_is_blog_recordable(integer $blog_id, integer $user_id = 0
) : boolean
If $user_id is provided, you can restrict site from being recordable only to particular users.
package | BuddyPress |
---|---|
since | 1.7.0 |
integer
ID of the blog being checked.
integer
Optional. ID of the user for whom access is being checked.
boolean
True if blog is recordable, otherwise false.bp_blogs_is_blog_trackable(integer $blog_id, integer $user_id = 0
) : boolean
If $user_id is provided, the developer can restrict site from being trackable only to particular users.
package | BuddyPress |
---|---|
since | 1.7.0 |
integer
ID of the blog being checked.
integer
Optional. ID of the user for whom access is being checked.
boolean
True if blog is trackable, otherwise false.bp_blogs_manage_comment($comment_id, $comment_status)
package | BuddyPress |
---|---|
deprecated | 1.6.0 |
deprecated | No longer used; see bp_activity_transition_post_type_comment_status() |
bp_blogs_maybe_add_user_to_blog()
WordPress catches add-user-to-blog requests at init:10. In some cases, this can precede BP's Blogs component. This function bumps the priority of the core function, so that we can be sure that the Blogs component is loaded first. See https://buddypress.trac.wordpress.org/ticket/3916.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_blogs_new_blog_comment_query_backpat(array $args) : array
In BuddyPress 2.0, the schema for storing activity items related to blog posts changed. Instead creating new top-level 'new_blog_comment' activity items, blog comments are recorded in the activity stream as comments on the 'new_blog_post' activity items corresponding to the parent post. This filter ensures that the 'new_blog_comment' filter in bp_has_activities() (which powers the 'Comments' filter in the activity directory dropdown) includes both old-style and new-style activity comments.
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.5.0 Used for any synced Post type comments, in wp-admin or front-end contexts. |
global | wpdb $wpdb WordPress database object. |
array
Arguments passed from bp_parse_args() in bp_has_activities().
array
$argsbp_blogs_post_pre_publish(boolean $return= true
, integer $blog_id= 0
, integer $post_id= 0
, integer $user_id= 0
) : boolean
Abstracted from the deprecated bp_blogs_record_post()
.
package | BuddyPress |
---|---|
since | 2.2.0 |
boolean
Whether the post should be published.
integer
ID of the blog.
integer
ID of the post.
integer
ID of the post author.
boolean
True to authorize the post to be published, otherwise false.bp_blogs_post_type_comments_avoid_duplicates(integer $retval) : integer
package | BuddyPress |
---|---|
since | 2.5.0 When viewing the synced comments in stream mode, this prevents comments to be displayed twice, and avoids a Javascript error as the form to add replies is not available. |
integer
The comment count for the activity.
integer
The comment count, or 0 to hide activity comment replies.bp_blogs_post_type_remove_comment(boolean $deleted, integer $comment_id, object $activity_post_object, string $activity_type = ''
)
package | BuddyPress |
---|---|
since | 2.5.0 |
boolean
True when a comment post type activity was successfully removed.
integer
ID of the comment to be removed.
object
The post type tracking args object.
string
The post type comment activity type.
bp_blogs_prefetch_activity_object_data(array $activities) : array
This reduces database overhead during the activity loop.
package | BuddyPress |
---|---|
since | 2.0.0 |
array
Array of activity items.
array
bp_blogs_profile_stats(array|string $args = ''
)
bp_blogs_record_activity(array|string $args = ''
) : \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 1.0.0 |
see | for description of parameters. |
array
string
{ See {@link bp_activity_add()} for complete description of arguments. The arguments listed here have different default values from bp_activity_add(). @type string $component Default: 'blogs'. }
\WP_Error
boolean
integer
On success, returns the activity ID. False on failure.bp_blogs_record_activity_on_site_creation(\BP_Blogs_Blog $recorded_blog, boolean $is_private, boolean $is_recorded, $no_activity)
Hooked to the 'bp_blogs_new_blog' action.
package | BuddyPress |
---|---|
since | 2.6.0 |
\BP_Blogs_Blog
Current site being recorded. Passed by reference.
boolean
Whether the current site being recorded is private.
boolean
Whether the current site was recorded.
bp_blogs_record_blog(integer $blog_id, integer $user_id, boolean $no_activity = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
ID of the blog being recorded.
integer
ID of the user for whom the blog is being recorded.
boolean
Optional. Whether to skip recording an activity item about this blog creation. Default: false.
bp_blogs_record_comment(integer $comment_id, boolean|string $is_approved = true
) : boolean | object | null
Only posts the item if blog is public and post is not password-protected.
package | BuddyPress |
---|---|
deprecated | 2.5.0 |
integer
ID of the comment being recorded.
boolean
string
Optional. The $is_approved value passed to the 'comment_post' action. Default: true.
boolean
object
null
Returns false on failure, the comment object on success.bp_blogs_record_existing_blogs(array $args = array()
) : boolean
Warning: By default, this will remove all existing records from the BP blogs and blogmeta tables before re-populating the tables.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.6.0 Accepts $args as a parameter. |
global | wpdb $wpdb WordPress database object. |
array
{ Array of arguments. @type int $offset The offset to use. @type int $limit The number of blogs to record at one time. @type array $blog_ids Blog IDs to record. If empty, all blogs will be recorded. @type array $site_id The network site ID to use. }
boolean
bp_blogs_record_post(integer $post_id, object $post, integer $user_id = 0
) : boolean | null
package | BuddyPress |
---|---|
deprecated | 2.2.0 |
integer
ID of the post being recorded.
object
The WP post object passed to the 'save_post' action.
integer
Optional. The user to whom the activity item will be associated. Defaults to the post_author.
boolean
null
Returns false on failure.bp_blogs_redirect_to_random_blog()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_blogs_register_activity_actions()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_blogs_register_custom_site_icon_size(array $sizes) : array
package | BuddyPress |
---|---|
since | 2.7.0 |
array
Current array of custom site icon sizes.
array
bp_blogs_register_post_tracking_args(object|null $params= null
, string|integer $post_type= 0
) : object | null
package | BuddyPress |
---|---|
since | 2.5.0 This was moved out of the BP_Blogs_Component class. |
see | for information on parameters. |
object
null
Tracking arguments.
string
integer
Post type to track.
object
null
bp_blogs_remove_associated_blog_comments(array $activity_ids= array()
, boolean $force_delete= true
)
package | BuddyPress |
---|---|
since | 2.0.0 |
see | |
see |
array
The activity IDs to check association with blog comments.
boolean
Whether to force delete the comments. If false, comments are trashed instead.
bp_blogs_remove_blog(integer $blog_id)
bp_blogs_remove_blog_for_user(integer $user_id, integer $blog_id)
package | BuddyPress |
---|
integer
ID of the user for whom the blog is being removed.
integer
ID of the blog being removed.
bp_blogs_remove_comment(integer $comment_id)
bp_blogs_remove_data(integer $user_id)
bp_blogs_remove_data_for_blog(integer $blog_id)
bp_blogs_remove_data_on_delete_user(integer $user_id)
bp_blogs_remove_post(integer $post_id, integer $blog_id= 0
, integer $user_id= 0
)
package | BuddyPress |
---|---|
since | 1.0.0 |
global | wpdb $wpdb WordPress database object. |
integer
ID of the post to be removed.
integer
Optional. Defaults to current blog ID.
integer
Optional. Defaults to the logged-in user ID. This param is currently unused in the function (but is passed to hooks).
bp_blogs_remove_user_from_blog(integer $user_id, integer $blog_id = 0
)
package | BuddyPress |
---|---|
global | wpdb $wpdb WordPress database object. |
integer
ID of the user whose blog is being removed.
integer
Optional. ID of the blog being removed. Default: current blog ID.
bp_blogs_render_recent_posts_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
global | BP_Activity_Template $activities_template The Activity template loop. |
array
The block attributes.
string
HTML output.bp_blogs_restore_data(integer $user_id = 0
)
bp_blogs_setup_activity_loop_globals(object $activity)
Grabs the blog's comment depth and the post's open comment status options for later use in the activity and activity comment loops.
This is to prevent having to requery these items later on.
package | BuddyPress |
---|---|
since | 2.0.0 |
see | |
see |
object
The BP_Activity_Activity object.
bp_blogs_setup_comment_loop_globals_on_ajax()
package | BuddyPress |
---|---|
since | 2.0.0 |
see |
bp_blogs_signup_blog(string $blogname= ''
, string $blog_title= ''
, string|\WP_Error $errors= ''
)
package | BuddyPress |
---|---|
since | 1.0.0 |
string
Optional. The default blog name (path or domain).
string
Optional. The default blog title.
string
\WP_Error
Optional. The WP_Error object returned by a previous submission attempt.
bp_blogs_subdomain_base()
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 2.1.0 |
bp_blogs_sync_activity_edit_to_post_comment(\BP_Activity_Activity $activity)
bp_blogs_sync_add_from_activity_comment(integer $comment_id, array $params, object $parent_activity)
Note: This is only a one-way sync - activity comments -> blog comment.
For blog post -> activity comment, see bp_activity_post_type_comment().
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 2.5.0 Allow custom post types to sync their comments with activity ones |
integer
The activity ID for the posted activity comment.
array
Parameters for the activity comment.
object
Parameters of the parent activity item (in this case, the blog post).
bp_blogs_sync_delete_from_activity_comment(boolean $retval, integer $parent_activity_id, integer $activity_id, boolean $deleted) : boolean
Note: This is hooked on the 'bp_activity_delete_comment_pre' filter instead of the 'bp_activity_delete_comment' action because we need to fetch the activity comment children before they are deleted.
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 2.5.0 Add the $delected parameter |
boolean
Whether BuddyPress should continue or not.
integer
The parent activity ID for the activity comment.
integer
The activity ID for the pending deleted activity comment.
boolean
Whether the comment was deleted or not.
boolean
bp_blogs_total_blogs() : integer
bp_blogs_total_blogs_for_user(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user being queried. Default: on a user page, the displayed user. Otherwise, the logged-in user.
integer
$count Total blog count for the user.bp_blogs_transition_activity_status(string $new_status, string $old_status, object $comment)
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 2.5.0 |
string
New comment status.
string
Previous comment status.
object
Comment data.
bp_blogs_update_option_blogdescription(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_blogname(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_close_comments_days_old(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_close_comments_for_old_posts(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_comment_moderation(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_site_icon(integer|string $old_value, integer|string $new_value)
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
string
Old value
integer
string
New value
bp_blogs_update_option_thread_comments(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_option_thread_comments_depth(string $oldvalue, string $newvalue)
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
string
Value before save. Passed by do_action() but unused here.
string
Value to change meta to.
bp_blogs_update_post(\WP_Post $post)
bp_blogs_validate_blog_form($blog_name= ''
, $blog_title= ''
) : array
Essentially, a wrapper for \wpmu_validate_blog_signup().
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 7.0.0 Add the blog_name and blog_title parameters. The function has been moved into `bp-blogs/bp-blogs-functions.php`. |
array
Contains the new site data and error messages.bp_blogs_validate_blog_signup() : boolean | integer | \WP_Error
Passes submitted values to \wpmu_create_blog().
package | BuddyPress |
---|---|
since | 1.0.0 |
boolean
integer
\WP_Error
False if not a form submission, the Blog ID on success, a WP_Error object on failure.bp_buffer_template_part(string $slug, string|null $name= null
, boolean $ret= true
, array $args= array()
) : string | null
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 7.0.0 Added `$args` parameter. |
see | for a description of $slug, $name and $args params. |
string
See {@link bp_get_template_part()}.
string
null
See {@link bp_get_template_part()}.
boolean
If true, template content will be echoed. If false, returned. Default: true.
array
See {@link bp_get_template_part()}.
string
null
If $echo, returns the template content.bp_catch_site_data(\WP_Error|null $errors= null
, array $data= array()
)
package | BuddyPress |
---|---|
since | 6.0.0 |
\WP_Error
null
The WP_Error object.
array
Associative array of complete site data. See {@see wp_insert_site()}.
bp_check_theme_template_pack_dependency()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_cleanup_friendship_activities()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_clear_object_type_terms_cache(integer $type_id= 0
, string $taxonomy= ''
)
package | BuddyPress |
---|---|
since | 7.0.0 |
integer
The Type's term ID.
string
The Type's taxonomy name.
bp_comments_open(boolean $open, integer $post_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
boolean
True if open, false if closed.
integer
ID of the post to check.
boolean
True if open, false if closed.bp_comments_pre_query(array|integer|null $comment_data, \WP_Comment_Query $wp_comment_query) : array | integer | null
package | BuddyPress |
---|---|
since | 10.5.0 |
array
integer
null
The comments list, the comment count or null.
\WP_Comment_Query
The WP_Comment_Query instance.
array
integer
null
Null to leave WordPress deal with the comment query, an empty array or 0 to shortcircuit it.bp_core_action_delete_user()
Note: no longer used in the current state. See the Settings component.
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 1.6.0 No longer used, unhooked. |
since | 3.0.0 Formally marked as deprecated. |
bp_core_action_search_site(string $slug = ''
)
package | BuddyPress |
---|---|
since | 1.0.1 |
since | 10.0.0 Add support for Activity search. |
string
The slug to redirect to for searching.
bp_core_action_set_spammer_status(integer $user_id = 0
)
When a site admin selects "Mark as Spammer/Not Spammer" from the admin menu this action will fire and mark or unmark the user and their blogs as spam. Must be a site admin for this function to run.
Note: no longer used in the current state. See the Settings component.
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 1.6.0 No longer used, unhooked. |
since | 3.0.0 Formally marked as deprecated. |
integer
Optional. User ID to mark as spam. Defaults to displayed user.
bp_core_activate_signup(string $key) : integer | boolean
package | BuddyPress |
---|---|
since | 1.2.2 |
global | wpdb $wpdb WordPress database object. |
string
Activation key.
integer
boolean
User ID on success, false on failure.bp_core_activation_notice()
On every Dashboard page, this function checks the following:
package | BuddyPress |
---|---|
since | 1.2.0 |
global | wpdb $wpdb WordPress database object. |
bp_core_activation_signup_blog_notification(string $domain, string $path, string $title, string $user, string $user_email, string $key) : boolean
This function filter's WP's 'wpmu_signup_blog_notification', and replaces WP's default welcome email with a BuddyPress-specific message.
package | BuddyPress |
---|---|
since | 1.0.0 |
see | for a description of parameters. |
string
The new blog domain.
string
The new blog path.
string
The site title.
string
The user's login name.
string
The user's email address.
string
The activation key created in wpmu_signup_blog().
boolean
Returns false to stop original WPMU function from continuing.bp_core_activation_signup_user_notification(string $user, string $user_email, string $key, array $meta) : false | string
package | BuddyPress |
---|---|
since | 1.0.0 |
see | for a full description of params. |
string
The user's login name.
string
The user's email address.
string
The activation key created in wpmu_signup_user().
array
By default, an empty array.
false
string
Returns false to stop original WPMU function from continuing.bp_core_add_admin_notice(string $notice= ''
, string $type= 'updated'
)
Messages added with this function are displayed in BuddyPress's general purpose admin notices box. It is recommended that you hook this function to admin_init, so that your messages are loaded in time.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The notice you are adding to the queue.
string
The notice type; optional. Usually either "updated" or "error".
bp_core_add_ajax_hook()
package | BuddyPress |
---|---|
deprecated | 1.6.0 |
deprecated | No longer used. We do ajax properly now. |
bp_core_add_ajax_url_js()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_add_contextual_help(string $screen = ''
)
package | BuddyPress |
---|---|
since | 1.7.0 |
todo | Make this part of the BP_Component class and split into each component. |
string
Current screen.
bp_core_add_contextual_help_content(string $tab = ''
) : string
bp_core_add_cropper_inline_css()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_add_cropper_inline_js()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_add_global_group()
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 2.2.0 |
bp_core_add_illegal_names()
For example, it would stop someone creating a blog with the slug "groups".
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 6.0.0 |
bp_core_add_jquery_cropper()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_add_loading_lazy_attribute(string $content = ''
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
string
Content to inject attribute into.
string
bp_core_add_notification(string $item_id, integer $user_id, string $component_name, string $component_action, integer $secondary_item_id= 0
, false|string $date_notified= false
, integer $is_new= 1
) : integer | boolean
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_add_notification() instead. |
since | 1.0.0 |
string
integer
string
string
integer
false
string
integer
integer
boolean
True on success, false on failure.bp_core_add_page_mappings(array $components, string $existing= 'keep'
, boolean $return_pages= false
) : array | null
Directory pages are those WordPress pages used by BP components to display content (eg, the 'groups' page created by BP).
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 12.0.0 Adds the `$return_pages` parameter. |
array
Components to create pages for.
string
'delete' if you want to delete existing page mappings and replace with new ones. Otherwise existing page mappings are kept, and the gaps filled in with new pages. Default: 'keep'.
boolean
Whether to return the page mapping or not.
array
null
bp_core_add_root_component(string $slug)
This function originally (pre-1.5) let plugins add support for pages in the root of the install. These root level pages are now handled by actual WordPress pages and this function is now a convenience for compatibility with the new method.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
string
The slug of the component being added to the root list.
bp_core_add_settings_nav()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_admin_available_tools_intro()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_core_admin_available_tools_page()
We register this page on Network Admin as a top-level home for our BuddyPress tools. This displays the default content.
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_core_admin_backpat_page()
package | BuddyPress |
---|---|
see | |
since | 1.6.0 |
todo | Add convenience links into the markup once new positions are finalized. |
bp_core_admin_body_classes(string $classes) : string
package | BuddyPress |
---|---|
since | 2.8.0 |
string
CSS classes for the body tag in the admin, a space separated string.
string
bp_core_admin_components_settings()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_core_admin_components_settings_handler()
package | BuddyPress |
---|---|
since | 1.6.0 |
todo | Use settings API when it supports saving network settings |
bp_core_admin_debug_information(array $debug_info = array()
) : array
package | BuddyPress |
---|---|
since | 5.0.0 |
array
The Site's debug info.
array
The Site's debug info, including the BuddyPress specific ones.bp_core_admin_debug_information_add_help_tab()
package | BuddyPress |
---|---|
since | 14.0.0 |
bp_core_admin_delete_type(array $args = array()
) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
array
{ Array of arguments describing the object type.
@type string $taxonomy The Type's taxonomy. Required.
@type integer $type_term_id The Type's term ID. Required.
}
boolean
\WP_Error
True on success. A WP_Error object otherwise.bp_core_admin_format_notifications(object|null $notification = null
)
bp_core_admin_get_active_components_from_submitted_settings(array $submitted) : array
The way that active components must be set after saving your settings must be calculated differently depending on which of the Components subtabs you are coming from:
package | BuddyPress |
---|---|
since | 1.7.0 |
array
This is the array of component settings coming from the POST global. You should stripslashes_deep() before passing to this function.
array
The calculated list of component settingsbp_core_admin_get_components(string $type = 'all'
) : array
We use this information both to build the markup for the admin screens, as well as to do some processing on settings data submitted from those screens.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Optional; Component type to fetch. Defaults to 'all'. Possible values include 'all', 'optional', 'retired', and 'required'.
array
Requested components' data.bp_core_admin_get_directory_pages() : array
bp_core_admin_get_static_pages() : array
By default, this list contains 'register' and 'activate'.
package | BuddyPress |
---|---|
since | 2.4.1 |
deprecated | 12.0.0 |
array
bp_core_admin_hook() : string
Functions used to set up BP Dashboard pages (wrapping such admin-panel functions as add_submenu_page()) should use bp_core_admin_hook() for the first parameter in add_action(). BuddyPress will then determine automatically whether to load the panels in the Network Admin. Ie:
add_action( bp_core_admin_hook(), 'myplugin_dashboard_panel_setup' );
package | BuddyPress |
---|---|
since | 1.5.0 |
string
$hook The proper hook ('network_admin_menu' or 'admin_menu').bp_core_admin_insert_type(array $args = array()
) : integer | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
array
{ Array of arguments describing the object type.
@type string $taxonomy The Type's taxonomy. Required.
@type string $bp_type_id Unique string identifier for the member type. Required.
@type string $bp_type_singular_name Singular name for the member type. Required.
@type string $bp_type_name Plural name for the member type. Required.
@see keys of the array returned by bp_get_type_metadata_schema() for the other arguments.
}
integer
\WP_Error
The Type's term ID on success. A WP_Error object otherwise.bp_core_admin_is_running_php53_or_greater() : boolean
BuddyPress 2.8 introduces a minimum PHP requirement of PHP 5.3.
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
boolean
bp_core_admin_maybe_disable_update_row_for_php53_requirement()
Originally hooked to 'load-plugins.php' with priority 100.
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
bp_core_admin_maybe_remove_from_update_core()
Originally hooked to 'load-update-core.php'.
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
bp_core_admin_notice_dismiss_callback()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_core_admin_notice_repopulate_blogs_resume()
This notice only shows up in the network admin dashboard.
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_core_admin_php52_plugin_row(string $file, array $plugin_data)
When we see that a site is not running PHP 5.3 and is trying to update to BP 2.8+, we replace WP's default notice with our own, which both provides a link to our documentation of the requirement, and removes the link that allows a single plugin to be updated.
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
string
Plugin filename. buddypress/bp-loader.php.
array
Data about the BuddyPress plugin, as returned by the plugins API.
bp_core_admin_php53_admin_notice()
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
bp_core_admin_remove_buddypress_from_update_transient(object $retval) : object
Attached to the 'site_transient_update_plugins' filter.
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 2.8.0 |
object
Object of plugin update data.
object
bp_core_admin_rewrites_load()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_core_admin_rewrites_settings()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_core_admin_slugs_settings()
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 12.0.0 |
bp_core_admin_slugs_setup_handler()
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 12.0.0 |
bp_core_admin_tabbed_screen_header(string $title= ''
, string $active_tab= ''
, string $context= 'settings'
)
package | BuddyPress |
---|---|
since | 10.0.0 |
string
The title of the Admin page.
string
The current displayed tab.
string
The context of use for the tabs. Defaults to 'settings'. Possible values are 'settings' & 'tools'.
bp_core_admin_tabs(string $active_tab= ''
, string $context= 'settings'
, boolean $echo_tabs= true
) : string | null
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 8.0.0 Adds the `$context` parameter. |
string
Optional. Name of the tab that is active.
string
Optional. The context of use for the tabs. Defaults to 'settings'. Possible values are 'settings' or 'tools'.
boolean
Optional. Whether to echo or return the tabs. Default: true.
string
null
bp_core_admin_update_type(array $args = array()
) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
array
{ Array of arguments describing the object type.
@type string $taxonomy The Type's taxonomy. Required.
@type integer $type_term_id The Type's term ID. Required.
@see keys of the array returned by bp_get_type_metadata_schema() for the other arguments.
}
boolean
\WP_Error
True on success. A WP_Error object otherwise.bp_core_admin_user_manage_spammers()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_core_admin_user_row_actions(array<mixed,string> $actions, \WP_User $user_object) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
array<mixed,string>
User row action links.
\WP_User
WP_User object for the currently listed user.
array
$actions User row action links.bp_core_admin_user_spammed_js()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_core_ajax_url() : string
Designed to be sensitive to FORCE_SSL_ADMIN and non-standard multisite configurations.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
AJAX endpoint URL.bp_core_allow_default_theme($themes) : array
bp_core_avatar_default(string $type= 'gravatar'
, array $params= array()
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.6.0 Introduced `$params` and `$object_type` parameters. |
string
'local' if the fallback should be the locally-hosted version of the mystery person, 'gravatar' if the fallback should be Gravatar's version. Default: 'gravatar'.
array
Parameters passed to bp_core_fetch_avatar().
string
The URL of the default avatar.bp_core_avatar_default_thumb(string $type= 'gravatar'
, array $params= array()
) : string
Uses Gravatar's mystery-person avatar, unless BP_AVATAR_DEFAULT_THUMB has been defined.
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.6.0 Introduced `$object_type` parameter. |
string
'local' if the fallback should be the locally-hosted version of the mystery person, 'gravatar' if the fallback should be Gravatar's version. Default: 'gravatar'.
array
Parameters passed to bp_core_fetch_avatar().
string
The URL of the default avatar thumb.bp_core_avatar_dimension(string $type= 'thumb'
, string $h_or_w= 'height'
) : integer | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Dimension type you're fetching dimensions for. 'thumb' or 'full'. Default: 'thumb'.
string
Which dimension is being fetched. 'height' or 'width'. Default: 'height'.
integer
boolean
$dim The dimension.bp_core_avatar_full_height() : integer
bp_core_avatar_full_width() : integer
bp_core_avatar_handle_crop(array|string $args= ''
, string $retval= 'boolean'
) : array | boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 10.0.0 Adds the `$return` param to eventually return the crop result. |
array
string
{ Array of function parameters.
@type string $object Object type of the item whose avatar you're
handling. 'user', 'group', 'blog', or custom.
Default: 'user'.
@type string $avatar_dir Subdirectory where avatar should be stored.
Default: 'avatars'.
@type bool|int $item_id ID of the item that the avatar belongs to.
@type bool|string $original_file Absolute path to the original avatar file.
@type int $crop_w Crop width. Default: the global 'full' avatar width,
as retrieved by bp_core_avatar_full_width().
@type int $crop_h Crop height. Default: the global 'full' avatar height,
as retrieved by bp_core_avatar_full_height().
@type int $crop_x The horizontal starting point of the crop. Default: 0.
@type int $crop_y The vertical starting point of the crop. Default: 0.
}
string
Optional. Whether to get the crop array
or a boolean
. Defaults to boolean
.
array
boolean
bp_core_avatar_handle_upload(array $file, string $upload_dir_filter) : boolean
The functions starts off by checking that the file has been uploaded properly using bp_core_check_avatar_upload(). It then checks that the file size is within limits, and that it has an accepted file extension (jpg, gif, png). If everything checks out, crop the image and move it to its real location.
package | BuddyPress |
---|---|
since | 1.1.0 |
see | |
see |
array
The appropriate entry the from $_FILES superglobal.
string
A filter to be applied to 'upload_dir'.
boolean
bp_core_avatar_original_max_filesize() : integer
bp_core_avatar_original_max_width() : integer
bp_core_avatar_reset_query(\WP_Query|null $posts_query = null
)
When cropping an avatar, a $_POST['w'] var is sent, setting the 'week' parameter of the WordPress main query to this posted var. To avoid notices, we need to make sure this 'week' query var is reset to 0.
package | BuddyPress |
---|---|
since | 2.2.0 |
\WP_Query
null
The main query object.
bp_core_avatar_scripts()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_core_avatar_thumb_height() : integer
bp_core_avatar_thumb_width() : integer
bp_core_avatar_upload_path() : string
bp_core_avatar_url() : string
bp_core_boot_spammer(\WP_User|\WP_Error $user) : \WP_User | \WP_Error
When a user logs in, check if they have been marked as a spammer. If yes then simply redirect them to the home page and stop them from logging in.
package | BuddyPress |
---|---|
since | 1.1.2 |
\WP_User
\WP_Error
Either the WP_User object or the WP_Error object, as passed to the 'authenticate' filter.
\WP_User
\WP_Error
If the user is not a spammer, return the WP_User
object. Otherwise a new WP_Error object.bp_core_can_edit_settings() : boolean
bp_core_catch_no_access()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_core_catch_profile_uri()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_check_avatar_size(array $file) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
array
The $_FILES array.
boolean
True if the avatar is under the size limit, otherwise false.bp_core_check_avatar_type(array $file) : boolean
Permitted file types are JPG, GIF and PNG.
package | BuddyPress |
---|---|
since | 1.0.0 |
array
The $_FILES array.
boolean
True if the file extension is permitted, otherwise false.bp_core_check_avatar_upload(array $file) : boolean
bp_core_check_for_blacklist(integer $user_id= 0
, string $title= ''
, string $content= ''
, string $error_type= 'bool'
) : boolean | \WP_Error
Use bp_core_check_for_disallowed_keys() instead.
package | BuddyPress |
---|---|
since | 1.6.0 |
since | 2.6.0 Added $error_type parameter. |
deprecated | 7.0.0 |
integer
User ID.
string
The title of the content.
string
The content being posted.
string
The error type to return. Either 'bool' or 'wp_error'.
boolean
\WP_Error
True if test is passed, false if fail.bp_core_check_for_disallowed_keys(integer $user_id= 0
, string $title= ''
, string $content= ''
, string $error_type= 'bool'
) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
integer
User ID.
string
The title of the content.
string
The content being posted.
string
The error type to return. Either 'bool' or 'wp_error'.
boolean
\WP_Error
True if test is passed, false if fail.bp_core_check_for_flood(integer $user_id = 0
) : boolean
Check to make sure that a user is not making too many posts in a short amount of time.
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
User id to check for flood.
boolean
True if there is no flooding, false if there is.bp_core_check_for_moderation(integer $user_id= 0
, string $title= ''
, string $content= ''
, string $error_type= 'bool'
) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 1.6.0 |
since | 2.6.0 Added $error_type parameter. |
integer
User ID.
string
The title of the content.
string
The content being posted.
string
The error type to return. Either 'bool' or 'wp_error'.
boolean
\WP_Error
True if test is passed, false if it fails.bp_core_check_notification_access(integer $user_id, integer $notification_id) : boolean
Used before deleting a notification for a user.
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_check_notification_access() instead. |
since | 1.0.0 |
integer
integer
boolean
bp_core_clear_cache()
When WP Super Cache is installed, this function will clear cached pages so that success/error messages or time-sensitive content are not cached.
package | BuddyPress |
---|---|
since | 1.0.0 |
global | string $cache_path Path directory. |
see |
bp_core_clear_directory_pages_cache_page_edit(integer $post_id = 0
)
bp_core_clear_directory_pages_cache_settings_edit(string $option)
bp_core_clear_member_count_caches()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_core_clear_user_object_cache(string $user_id)
bp_core_component_slug_from_root_slug(string $root_slug) : string
Since 1.5, BP components get their root_slug (the slug used immediately following the root domain) from the slug of a corresponding WP page.
E.g. if your BP installation at example.com has its members page at example.com/community/people, $bp->members->root_slug will be 'community/people'.
By default, this function creates a shorter version of the root_slug for use elsewhere in the URL, by returning the content after the final '/' in the root_slug ('people' in the example above).
Filter on 'bp_core_component_slug_from_root_slug' to override this method in general, or define a specific component slug constant (e.g. BP_MEMBERS_SLUG) to override specific component slugs.
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
string
The root slug, which comes from $bp->pages->[component]->slug.
string
The short slug for use in the middle of URLs.bp_core_components_subdirectory_reserved_names(array $names = array()
) : array
package | BuddyPress |
---|---|
since | 6.0.0 |
array
The WordPress Multisite subdirectory reserved names.
array
The WordPress & BuddyPress Multisite subdirectory reserved names.bp_core_confirmation_js()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_cover_image_scripts()
package | BuddyPress |
---|---|
since | 2.4.0 |
bp_core_create_nav_link(array|string $args= ''
, string $component= 'members'
) : false | array
package | BuddyPress |
---|---|
since | 2.4.0 |
since | 2.6.0 Introduced the `$component` parameter. Began returning a BP_Core_Nav_Item object on success. |
since | 4.0.0 Introduced `$component_id` argument. |
array
string
{
Array describing the new nav item.
@type string $component_id Optional. The ID of the component registering this nav item. Defaults to the
the value of $slug
.
@type string $name Display name for the nav item.
@type string $slug Unique URL slug for the nav item.
@type bool|string $item_css_id Optional. 'id' attribute for the nav item. Default: the value of $slug
.
@type bool $show_for_displayed_user Optional. Whether the nav item should be visible when viewing a
member profile other than your own. Default: true.
@type bool $site_admin_only Optional. Whether the nav item should be visible only to site admins
(those with the 'bp_moderate' cap). Default: false.
@type int $position Optional. Numerical index specifying where the item should appear in
the nav array. Default: 99.
@type callable $screen_function The callback function that will run when the nav item is clicked.
@type bool|string $default_subnav_slug Optional. The slug of the default subnav item to select when the nav
item is clicked.
}
string
Optional. Component that the nav belongs to.
false
array
Returns false on failure, new nav item on success.bp_core_create_root_component_page()
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
bp_core_current_time(boolean $gmt= true
, string $type= 'mysql'
) : string
package | BuddyPress |
---|---|
since | 1.2.6 |
boolean
True to use GMT (rather than local) time. Default: true.
string
See the 'type' parameter in {@link current_time()}. Default: 'mysql'.
string
Current time in 'Y-m-d h:i:s' format.bp_core_current_user_ip() : string
bp_core_current_user_ua() : string
bp_core_define_slugs()
Handles the three slug constants used in the Members component - BP_MEMBERS_SLUG, BP_REGISTER_SLUG, and BP_ACTIVATION_SLUG. If these constants are not overridden in wp-config.php or bp-custom.php, they are defined here to match the slug of the corresponding WP pages.
In general, fallback values are only used during initial BP page creation, when no slugs have been explicitly defined.
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
bp_core_delete_account(integer $user_id = 0
) : boolean
Primarily used for self-deletions, as requested through Settings.
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
Optional. ID of the user to be deleted. Default: the logged-in user.
boolean
bp_core_delete_all_notifications_by_type($item_id, string $component_name, false|string $component_action= false
, $secondary_item_id= false
) : boolean
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_all_notifications_by_type() instead. |
since | 1.0.0 |
string
false
string
boolean
bp_core_delete_avatar_on_delete_user(integer $user_id)
bp_core_delete_avatar_on_user_delete(integer $user_id) : boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user who is about to be deleted.
boolean
bp_core_delete_existing_avatar(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
array
string
{ Array of function parameters. @type bool|int $item_id ID of the item whose avatar you're deleting. Defaults to the current item of type $object. @type string $object Object type of the item whose avatar you're deleting. 'user', 'group', 'blog', or custom. Default: 'user'. @type bool|string $avatar_dir Subdirectory where avatar is located. Default: false, which falls back on the default location corresponding to the $object. }
boolean
bp_core_delete_incremented_cache(string $key, string $group) : boolean
A utility function for use by query methods like BP_Activity_Activity::get().
package | BuddyPress |
---|---|
since | 3.0.0 |
see |
string
Unique key for the query. Usually a SQL string.
string
Cache group. Eg 'bp_activity'.
boolean
bp_core_delete_notification(integer $id) : false | integer
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_notification() instead. |
since | 1.0.0 |
integer
ID of notification.
false
integer
True on success, false on failure.bp_core_delete_notifications_by_item_id(integer $user_id, $item_id, string $component_name, string $component_action, $secondary_item_id = false
) : false | integer
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_notifications_by_item_id() instead. |
since | 1.0.0 |
integer
string
string
false
integer
True on success, false on failure.bp_core_delete_notifications_by_type(integer $user_id, string $component_name, string $component_action) : false | integer
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_notifications_by_type() instead. |
since | 1.0.0 |
integer
string
string
false
integer
True on success, false on failure.bp_core_delete_notifications_for_user_by_item_id($user_id, $item_id, $component_name, $component_action, $secondary_item_id = false
) : mixed
package | BuddyPress |
---|
mixed
bp_core_delete_notifications_for_user_by_type($user_id, $component_name, $component_action) : mixed
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
mixed
bp_core_delete_notifications_from_user(integer $user_id, string $component_name, string $component_action) : false | integer
Used when clearing out all notifications for a user, when deleted or spammed.
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_notifications_from_user() instead. |
since | 1.0.0 |
integer
string
string
false
integer
True on success, false on failure.bp_core_deprecated_email_actions(boolean|\WP_Error $delivery_status, \BP_Email $email) : mixed
package | BuddyPress |
---|---|
since | 2.5.0 |
boolean
\WP_Error
Bool if the email was sent or not. If a WP_Error, there was a failure.
\BP_Email
Email object reference.
mixed
bp_core_deprecated_email_filters(mixed $value, string $property, string $transform, \BP_Email $email) : mixed
package | BuddyPress |
---|---|
since | 2.5.0 |
mixed
string
Name of property.
string
Return value transformation. Unused.
\BP_Email
Email object reference.
mixed
bp_core_dismiss_admin_notification(string $notification_id = ''
)
package | BuddyPress |
---|---|
since | 11.4.0 |
string
The Admin Notification to dismiss.
bp_core_do_network_admin() : boolean
Because BuddyPress can be installed in multiple ways and with multiple configurations, we need to check a few things to be confident about where to hook into certain areas of WordPress's admin.
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the BP admin screen should appear in the Network Admin,
otherwise false.bp_core_email_from_address_filter() : string
bp_core_email_from_name_filter() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 2.5.0 Not used. Was hooked to WordPress' "wp_mail_from_name" action. Use the "bp_email_get_from" action instead. |
string
The blog name for the root blog.bp_core_enable_root_profiles() : boolean
bp_core_enqueue_livestamp()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_core_exclude_pages(array $pages = array()
) : array
package | BuddyPress |
---|---|
since | 1.5.0 |
array
List of excluded page IDs, as passed to the 'wp_list_pages_excludes' filter.
array
The exclude list, with BP's pages added.bp_core_extract_media_from_content(string $content= ''
, string|integer $type= 'all'
) : false | array
package | BuddyPress |
---|---|
since | 2.6.0 |
string
The content to check.
string
integer
The type to check. Can also use a bitmask. See the class constants in the BP_Media_Extractor class for more info.
false
array
If media exists, will return array of media metadata. Else, boolean false.bp_core_fetch_avatar(array|string $args = ''
) : string
Supports avatars for users, groups, and blogs by default, but can be extended to support custom components as well.
This function gives precedence to locally-uploaded avatars. When a local avatar is not found, Gravatar is queried. To disable Gravatar fallbacks locally: add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 2.4.0 Added 'extra_attr', 'scheme', 'rating' and 'force_default' for $args. These are inherited from WordPress 4.2.0. See {@link get_avatar()}. |
array
string
{ An array of arguments. All arguments are technically optional; some will, if not provided, be auto-detected by bp_core_fetch_avatar(). This auto-detection is described more below, when discussing specific arguments.
@type int|bool $item_id The numeric ID of the item for which you're requesting
an avatar (eg, a user ID). If no 'item_id' is present,
the function attempts to infer an ID from the 'object' + the
current context: if 'object' is 'user' and the current page is a
user page, 'item_id' will default to the displayed user ID; if
'group' and on a group page, to the current group ID; if 'blog',
to the current blog's ID. If no 'item_id' can be determined in
this way, the function returns false. Default: false.
@type string $object The kind of object for which you're getting an
avatar. BuddyPress natively supports three options: 'user',
'group', 'blog'; a plugin may register more. Default: 'user'.
@type string $type When a new avatar is uploaded to BP, 'thumb' and
'full' versions are saved. This parameter specifies whether you'd
like the 'full' or smaller 'thumb' avatar. Default: 'thumb'.
@type string|bool $avatar_dir The name of the subdirectory where the
requested avatar should be found. If no value is passed,
'avatar_dir' is inferred from 'object': 'user' becomes 'avatars',
'group' becomes 'group-avatars', 'blog' becomes 'blog-avatars'.
Remember that this string denotes a subdirectory of BP's main
avatar directory (usually based on {@link wp_upload_dir()}); it's a
string like 'group-avatars' rather than the full directory path.
Generally, it'll only be necessary to override the default value if
storing avatars in a non-default location. Defaults to false
(auto-detected).
@type int|bool $width Requested avatar width. The unit is px. This value
is used to build the 'width' attribute for the element. If
no value is passed, BP uses the global avatar width for this
avatar type. Default: false (auto-detected).
@type int|bool $height Requested avatar height. The unit is px. This
value is used to build the 'height' attribute for the
element. If no value is passed, BP uses the global avatar height
for this avatar type. Default: false (auto-detected).
@type string $class The CSS class for the element. Note that BP
uses the 'avatar' class fairly extensively in its default styling,
so if you plan to pass a custom value, consider appending it to
'avatar' (eg 'avatar foo') rather than replacing it altogether.
Default: 'avatar'.
@type string|bool $css_id The CSS id for the element.
Default: false.
@type string $title The title attribute for the element.
Default: false.
@type string $alt The alt attribute for the element. In BP, this
value is generally passed by the wrapper functions, where the data
necessary for concatenating the string is at hand; see
{@link bp_get_activity_avatar()} for an example. Default: ''.
@type string|bool $email An email to use in Gravatar queries. Unless
otherwise configured, BP uses Gravatar as a fallback for avatars
that are not provided locally. Gravatar's API requires using a hash
of the user's email address; this argument provides it. If not
provided, the function will infer it: for users, by getting the
user's email from the database, for groups/blogs, by concatenating
"{$item_id}-{$object}@{bp_get_domain()}". The user query adds
overhead, so it's recommended that wrapper functions provide a
value for 'email' when querying user IDs. Default: false.
@type bool $no_grav Whether to disable the default Gravatar fallback.
By default, BP will fall back on Gravatar when it cannot find a
local avatar. In some cases, this may be undesirable, in which
case 'no_grav' should be set to true. To disable Gravatar
fallbacks globally, see the 'bp_core_fetch_avatar_no_grav' filter.
Default: true for groups, otherwise false.
@type bool $html Whether to return an HTML element, vs a raw URL
to an avatar. If false, -specific arguments (like 'css_id')
will be ignored. Default: true.
@type string $extra_attr HTML attributes to insert in the IMG element. Not sanitized. Default: ''.
@type string $scheme URL scheme to use. See set_url_scheme() for accepted values.
Default null.
@type string $rating What rating to display Gravatars for. Accepts 'G', 'PG', 'R', 'X'.
Default is the value of the 'avatar_rating' option.
@type bool $force_default Used when creating the Gravatar URL. Whether to force the default
image regardless if the Gravatar exists. Default: false.
}
string
Formatted HTML element, or raw avatar URL based on $html arg.bp_core_fetch_avatar_filter(string $avatar, integer|string|object $user, integer $size, string $default, string $alt= ''
, array $args= array()
) : string
See 'get_avatar' filter description in wp-includes/pluggable.php.
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 2.4.0 Added $args parameter to coincide with WordPress 4.2.0. |
string
The avatar path passed to 'get_avatar'.
integer
string
object
A user ID, email address, or comment object.
integer
Size of the avatar image ('thumb' or 'full').
string
URL to a default image to use if no avatar is available.
string
Alternate text to use in image tag. Default: ''.
array
Arguments passed to get_avatar_data(), after processing.
string
BP avatar path, if found; else the original avatar path.bp_core_filter_blog_welcome_email(string $welcome_email, integer $blog_id, integer $user_id, string $password) : string
On a standard BP installation, users who register themselves also set their own passwords. Therefore there is no need for the insecure practice of emailing the plaintext password to the user in the welcome email.
This filter will not fire when a user is registered by the site admin.
package | BuddyPress |
---|---|
since | 1.2.1 |
string
Complete email passed through WordPress.
integer
ID of the blog user is joining.
integer
ID of the user joining.
string
Password of user.
string
Filtered $welcome_email with $password replaced by '[User Set]'.bp_core_filter_comments(array $comments) : array
package | BuddyPress |
---|---|
since | 1.2.0 |
array
The array of comments supplied to the comments template.
array
$comments The modified comment array.bp_core_filter_edit_post_link(string $edit_link= ''
, integer $post_id= 0
) : false | string
package | BuddyPress |
---|---|
since | 2.1.0 |
string
The edit link.
integer
Post ID.
false
string
Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link)
otherwisebp_core_filter_user_welcome_email(string $welcome_email) : string
On a standard BP installation, users who register themselves also set their own passwords. Therefore there is no need for the insecure practice of emailing the plaintext password to the user in the welcome email.
This filter will not fire when a user is registered by the site admin.
package | BuddyPress |
---|---|
since | 1.2.1 |
string
Complete email passed through WordPress.
string
Filtered $welcome_email with the password replaced
by '[User Set]'.bp_core_filter_wp_query(null $retval, \WP_Query $query) : null | array
As of WordPress 4.6, it is possible to bypass the main WP_Query entirely. This saves us one unnecessary database query! :)
package | BuddyPress |
---|---|
since | 2.7.0 |
null
Current return value for filter.
\WP_Query
Current WordPress query object.
null
array
bp_core_flush_illegal_names()
package | BuddyPress |
---|---|
since | 1.2.5 |
bp_core_get_10_0_upgrade_email_schema(array $emails) : array
bp_core_get_11_0_upgrade_email_schema(array $emails) : array
bp_core_get_8_0_upgrade_email_schema(array $emails) : array
bp_core_get_active_components(array $args= array()
, string $output= 'ids'
, string $operator= 'and'
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
array
{ Optional. An array of key => value arguments to match against the component objects. Default empty array.
@type string $name Translatable name for the component.
@type string $id Unique ID for the component.
@type string $slug Unique slug for the component, for use in query strings and URLs.
@type bool $has_directory True if the component has a top-level directory. False otherwise.
@type string $root_slug Slug used by the component's directory page.
}
string
Optional. The type of output to return. Accepts 'ids' or 'objects'. Default 'ids'.
string
Optional. The logical operation to perform. 'or' means only one element from the array needs to match; 'and' means all elements must match. Accepts 'or' or 'and'. Default 'and'.
array
A list of component ids or objects.bp_core_get_active_member_count() : integer
package | BuddyPress |
---|---|
since | 1.6.0 |
global | wpdb $wpdb WordPress database object. |
integer
The number of active members.bp_core_get_admin_notifications() : array
bp_core_get_admin_settings_tabs(boolean $apply_filters = true
) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
Whether to apply filters or not.
array
The BP Admin settings tabs.bp_core_get_admin_tabs(string $active_tab= ''
, string $context= 'settings'
) : string
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 8.0.0 Adds the `$context` parameter. |
string
Name of the tab that is active. Optional.
string
The context of use for the tabs. Defaults to 'settings'. Possible values are 'settings' & 'tools'.
string
bp_core_get_admin_tools_tabs(boolean $apply_filters = true
) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
Whether to apply filters or not.
array
The BP Admin tools tabs.bp_core_get_all_posts_for_user(integer $user_id = 0
) : array
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
integer
ID of the user being queried.
array
Post IDs.bp_core_get_allowed_avatar_mimes() : array
bp_core_get_allowed_avatar_types() : array
bp_core_get_avatar_data_url_filter(string $retval, mixed $id_or_email, array $args) : string
package | BuddyPress |
---|---|
since | 2.9.0 |
string
The URL of the avatar.
mixed
The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
array
Arguments passed to get_avatar_data(), after processing.
string
bp_core_get_component_from_directory_page_id(integer $page_id = 0
) : integer | false
package | BuddyPress |
---|---|
since | 12.0.0 |
integer
The ID of the directory page associated with the component.
integer
false
The slug representing the component. False if none is found.bp_core_get_component_search_query_arg(string|null $component = null
) : string | boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
since | 2.7.0 The `$component` parameter was made optional, with the current component as the fallback value. |
string
null
Optional. Component name. Defaults to current component.
string
boolean
Query argument on success. False on failure.bp_core_get_components(string $type = 'all'
) : array
package | BuddyPress |
---|---|
since | 2.6.0 |
string
Optional; component type to fetch. Default value is 'all', or 'optional', 'retired', 'required'.
array
Requested components' data.bp_core_get_core_userdata(integer $user_id = 0
) : array | boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
The ID of the user.
array
boolean
Array of data on success, false on failure.bp_core_get_directory_page_default_titles() : array
bp_core_get_directory_page_id(string|null $component = null
) : integer | false
package | BuddyPress |
---|---|
since | 2.6.0 |
string
null
The slug representing the component. Defaults to the current component.
integer
false
The ID of the directory page associated with the component. False if none is found.bp_core_get_directory_page_ids(string $status = 'active'
) : array | string
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 10.0.0 Eventually switch the current site to BP root's one on multisite configs. |
string
'active' to return only pages associated with active components, 'all' to return all saved pages. When running save routines, use 'all' to avoid removing data related to inactive components. Default: 'active'.
array
string
An array of page IDs, keyed by component names, or an
empty string if the list is not found.bp_core_get_directory_pages() : object
bp_core_get_directory_pages_stati() : array
bp_core_get_directory_post_type() : string
bp_core_get_displayed_userid(string $user_login) : integer
No longer used.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
string
user_login of the user being queried.
integer
bp_core_get_illegal_names(array|string $value = ''
) : array
package | BuddyPress |
---|---|
since | 1.2.7 |
array
string
Illegal names as being saved defined in Multisite settings.
array
Merged and unique array of illegal names.bp_core_get_incremented_cache(string $key, string $group) : array | boolean
A utility function for use by query methods like BP_Activity_Activity::get().
package | BuddyPress |
---|---|
since | 2.7.0 |
see |
string
Unique key for the query. Usually a SQL string.
string
Cache group. Eg 'bp_activity'.
array
boolean
False if no cached values are found, otherwise an array of IDs.bp_core_get_incremented_cache_key(string $key, string $group) : string
The $key is hashed with a component-specific incrementor, which is used to invalidate multiple caches at once.
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Unique key for the query. Usually a SQL string.
string
Cache group. Eg 'bp_activity'.
string
bp_core_get_incrementor(string $group) : string
The incrementor is paired with query identifiers (like SQL strings) to create cache keys that can be invalidated en masse.
If an incrementor does not yet exist for the given $group
, one will
be created.
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Cache group. Eg 'bp_activity'.
string
bp_core_get_iso8601_date(string $timestamp = ''
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
string
String of date to convert. Timezone should be UTC before using this.
string
bp_core_get_js_dependencies() : array
bp_core_get_last_activity(integer|string $last_activity_date= ''
, string $string= ''
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
string
The date of last activity.
string
A sprintf()-able statement of the form 'Active %s'.
string
$last_active A string of the form '3 years ago'.bp_core_get_minified_asset_suffix() : string
bp_core_get_notification(integer $id) : false | \BP_Core_Notification
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_get_notification() instead. |
since | 1.0.0 |
integer
ID of notification.
false
\BP_Core_Notification
bp_core_get_notifications_for_user(integer $user_id, string $format = 'string'
) : boolean
package | BuddyPress |
---|---|
deprecated | Deprecated since BuddyPress 1.9.0. Use bp_notifications_get_notifications_for_user() instead. |
since | 1.0.0 |
integer
ID of user.
string
boolean
Object or array on success, false on failure.bp_core_get_optouts_notice() : array
bp_core_get_packaged_component_ids() : array
bp_core_get_query_parser() : string
bp_core_get_random_member()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_get_root_domain() : string
bp_core_get_root_option(string $option) : mixed
"Root options" are those that apply across an entire installation, and are fetched only a single
time during a page load and stored in buddypress()->site_options
to prevent future lookups.
See \bp_core_get_root_options().
package | BuddyPress |
---|---|
since | 2.3.0 |
string
Name of the option key.
mixed
Value, if found.bp_core_get_site_path() : string
bp_core_get_suggestions(array $args) : array | \WP_Error
This is used to power BuddyPress' at-mentions suggestions, but it is flexible enough to be used for similar kinds of future requirements, or those implemented by third-party developers.
package | BuddyPress |
---|---|
since | 2.1.0 |
array
Array of args for the suggestions.
array
\WP_Error
Array of results. If there were any problems, returns a WP_Error object.bp_core_get_table_prefix() : string
The filter is intended primarily for use in multinetwork installations.
package | BuddyPress |
---|---|
since | 1.2.6 |
global | wpdb $wpdb WordPress database object. |
string
Filtered database prefix.bp_core_get_total_member_count() : integer
Note that this is a raw count of non-spam, activated users. It does not account for users who have logged activity (last_active). See bp_core_get_active_member_count().
package | BuddyPress |
---|---|
since | 1.2.0 |
global | wpdb $wpdb WordPress database object. |
integer
The total number of members.bp_core_get_unread_admin_notifications() : array
bp_core_get_upload_dir(string $type = 'upload_path'
) : string
package | BuddyPress |
---|---|
since | 1.8.0 |
string
The variable we want to return from the $bp->avatars object. Only 'upload_path' and 'url' are supported. Default: 'upload_path'.
string
The avatar upload directory path.bp_core_get_user_displayname(integer|string|boolean $user_id_or_username) : string | boolean
package | BuddyPress |
---|---|
since | 1.0.1 |
integer
string
boolean
User ID or username.
string
boolean
The display name for the user in question, or false if
user not found.bp_core_get_user_displaynames(array $user_ids) : array
Uses the 'Name' field in xprofile if available. Falls back on WP display_name, and then user_nicename.
package | BuddyPress |
---|---|
since | 2.0.0 |
array
Array of user IDs to get display names for.
array
Associative array of the format "id" => "displayname".bp_core_get_user_domain(integer $user_id= 0
, string|boolean $user_nicename= false
, string|boolean $user_login= false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
integer
The ID of the user.
string
boolean
Optional. user_nicename of the user.
string
boolean
Optional. user_login of the user.
string
bp_core_get_user_email(integer $user_id) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
User ID to check.
string
The email for the matched user. Empty string if no user
matches the $user_id.bp_core_get_userid(string $username = ''
) : integer | null
package | BuddyPress |
---|---|
since | 1.0.0 |
string
user_login to check.
integer
null
The ID of the matched user on success, null on failure.bp_core_get_userid_from_nicename(string $user_nicename = ''
) : integer | null
package | BuddyPress |
---|---|
since | 1.2.3 |
string
user_nicename to check.
integer
null
The ID of the matched user on success, null on failure.bp_core_get_userlink(integer $user_id, boolean $no_anchor= false
, boolean $just_link= false
) : string | false
Eg: Andy Peatling
Optional parameters will return just the name or just the URL.
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
User ID to check.
boolean
Disable URL and HTML and just return full name. Default: false.
boolean
Disable full name and HTML and just return the URL text. Default false.
string
false
The link text based on passed parameters, or false on
no match.bp_core_get_userlink_by_email(string $email) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
string
The email address for the user.
string
The link to the users home base. False on no match.bp_core_get_userlink_by_username(string $username) : string | boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
string
If BP_ENABLE_USERNAME_COMPATIBILITY_MODE is set, this should be user_login, otherwise it should be user_nicename.
string
boolean
The link to the user's domain, false on no match.bp_core_get_username(integer $user_id= 0
, string|boolean $user_nicename= false
, string|boolean $user_login= false
) : string
This function is sensitive to the BP_ENABLE_USERNAME_COMPATIBILITY_MODE, so it will return the user_login or user_nicename as appropriate.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
integer
User ID to check.
string
boolean
Optional. user_nicename of user being checked.
string
boolean
Optional. user_login of user being checked.
string
The username of the matched user or an empty string if no user is found.bp_core_get_users(array|string $args = ''
) : array
Since BuddyPress 1.7, bp_core_get_users() uses BP_User_Query. If you need backward compatibility with BP_Core_User::get_users(), filter the bp_use_legacy_user_query value, returning true.
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 7.0.0 Added `xprofile_query` parameter. Added `user_ids` parameter. |
array
string
{
Array of arguments. All are optional. See {@link BP_User_Query} for
a more complete description of arguments.
@type string $type Sort order. Default: 'active'.
@type int $user_id Limit results to friends of a user. Default: false.
@type mixed $exclude IDs to exclude from results. Default: false.
@type string $search_terms Limit to users matching search terms. Default: false.
@type string $meta_key Limit to users with a meta_key. Default: false.
@type string $meta_value Limit to users with a meta_value (with meta_key). Default: false.
@type array|string $member_type Array or comma-separated string of member types.
@type array|string $member_typein Array or comma-separated string of member types.
$member_type
takes precedence over this parameter.
@type array|string $member_typenot_in Array or comma-separated string of member types to be excluded.
@type mixed $include Limit results by user IDs. Default: false.
@type mixed $user_ids IDs corresponding to the users. Default: false.
@type int $per_page Results per page. Default: 20.
@type int $page Page of results. Default: 1.
@type bool $populate_extras Fetch optional extras. Default: true.
@type array $xprofile_query Filter results by xprofile data. Requires the xprofile
component. See {@see BP_XProfile_Query} for details.
@type string|bool $count_total How to do total user count. Default: 'count_query'.
}
array
bp_core_include_directory_on_front(array<mixed,\WP_Post> $pages= array()
, array $args= array()
) : array<mixed,\WP_Post>
package | BuddyPress |
---|---|
since | 12.0.0 |
array<mixed,\WP_Post>
Array of page objects.
array
Array of get_pages() arguments.
array<mixed,\WP_Post>
Array of page objects, potentially including BP directories.bp_core_install(array|boolean $active_components = false
)
Can be passed an optional array of components to explicitly run installation routines on, typically the first time a component is activated in Settings.
package | BuddyPress |
---|---|
since | 1.0.0 |
array
boolean
Components to install.
bp_core_install_activity_streams()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_blog_tracking()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_extended_profiles()
package | BuddyPress |
---|---|
since | 1.0.0 |
global | wpdb $wpdb WordPress database object. |
bp_core_install_friends()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_groups()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_invitations()
package | BuddyPress |
---|---|
since | 5.0.0 |
uses | |
uses | |
uses |
bp_core_install_nonmember_opt_outs()
package | BuddyPress |
---|---|
since | 8.0.0 |
uses | |
uses | |
uses |
bp_core_install_notifications()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_private_messaging()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_core_install_signups()
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
bp_core_is_default_gravatar(string $d = ''
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
string
The name of the default gravatar.
boolean
True if it's a default gravatar. False otherwise.bp_core_is_main_site(integer|string $blog_id = ''
) : boolean
Checks if current blog is root blog of site. Deprecated in 1.5.
package | BuddyPress |
---|---|
package | BuddyPress |
deprecated | 1.5.0 |
deprecated | Use is_main_site() |
since | 1.2.6 |
integer
string
optional blog id to test (default current blog)
boolean
True if not multisite or $blog_id is main sitebp_core_is_multisite() : boolean
This function originally served as a wrapper when WordPress and WordPress MU were separate entities. Use is_multisite() instead.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Use is_multisite() |
boolean
bp_core_is_root_component($component_name) : boolean
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | bp_is_root_component() |
boolean
True if root component, else false.bp_core_is_user_deleted($user_id = 0
)
bp_core_is_user_spammer($user_id = 0
)
bp_core_iso8601_date(string $timestamp = ''
) : string | null
package | BuddyPress |
---|---|
since | 2.7.0 |
string
String of date to convert. Timezone should be UTC before using this.
string
null
bp_core_load_buddypress_textdomain() : void
package | BuddyPress |
---|---|
since | 1.0.2 |
bp_core_load_template(array $templates)
Example: bp_core_load_template( 'members/index' ); Loads: wp-content/themes/[activated_theme]/members/index.php
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 14.0.0 Uses `locate_block_template()` to support BuddyPress Block only Themes. |
array
Array of templates to attempt to load.
bp_core_login_filter_shake_codes(array $codes) : array
bp_core_login_redirect(string $redirect_to, string $redirect_to_raw, \WP_User $user) : string
package | BuddyPress |
---|---|
since | 1.2.0 are redirected to on login. |
string
The URL to be redirected to, sanitized in wp-login.php.
string
The unsanitized redirect_to URL ($_REQUEST['redirect_to']).
\WP_User
The WP_User object corresponding to a successfully logged-in user. Otherwise a WP_Error object.
string
The redirect URL.bp_core_map_user_registration(integer $user_id) : boolean
This only happens when a user is registered in wp-admin by an administrator; during normal registration, XProfile data is provided directly by the user.
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user.
boolean
bp_core_mark_user_ham_admin(integer $user_id)
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
The user ID passed from the make_ham_user hook.
bp_core_mark_user_spam_admin(integer $user_id)
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
The user ID passed from the make_spam_user hook.
bp_core_maybe_install_signups()
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
bp_core_members_shortlink_redirector(string $member_slug) : string
Redirects x.com/members/me/ to x.com/members/{LOGGED_IN_USER_SLUG}/
package | BuddyPress |
---|---|
since | 2.6.0 |
string
The current member slug.
string
$member_slug The current member slug.bp_core_moment_js_config()
package | BuddyPress |
---|---|
since | 2.7.0 |
deprecated | 11.0.0 |
bp_core_new_nav_default(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
array
string
{ Optional. Array describing the new default subnav item.
@type string $parent_slug The slug of the nav item whose default is being changed.
@type callable $screen_function The new default callback function that will run when the nav item is clicked.
@type string $subnav_slug The slug of the new default subnav item.
}
bp_core_new_nav_item(array|string $args, string $component = 'members'
) : null | false
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 2.6.0 Introduced the `$component` parameter. |
since | 4.0.0 Introduced the `$component_id` argument. |
array
string
{
Array describing the new nav item.
@type string $name Display name for the nav item.
@type string $slug Unique URL slug for the nav item.
@type string $component_id Optional. The ID of the component registering the nav item. Defaults to slug.
@type bool|string $item_css_id Optional. 'id' attribute for the nav item. Default: the value of $slug
.
@type bool $show_for_displayed_user Optional. Whether the nav item should be visible when viewing a
member profile other than your own. Default: true.
@type bool $site_admin_only Optional. Whether the nav item should be visible only to site admins
(those with the 'bp_moderate' cap). Default: false.
@type int $position Optional. Numerical index specifying where the item should appear in
the nav array. Default: 99.
@type callable $screen_function The callback function that will run when the nav item is clicked.
@type bool|string $default_subnav_slug Optional. The slug of the default subnav item to select when the nav
item is clicked.
}
string
The component the navigation is attached to. Defaults to 'members'.
null
false
Returns false on failure.bp_core_new_user_activity(array $user) : boolean
package | BuddyPress |
---|---|
since | 1.2.2 |
array
Array of userdata passed to bp_core_activated_user hook.
boolean
bp_core_no_access(array|string $args = ''
)
Add an error message (if one is provided).
If authenticated, redirects user back to requested content by default.
package | BuddyPress |
---|---|
since | 1.5.0 |
array
string
{ Optional. Array of arguments for redirecting user when visiting access controlled areas. @type int $mode Specifies the destination of the redirect. 1 will direct to the root domain (home page), which assumes you have a log-in form there; 2 directs to wp-login.php. Default: 2. @type string $redirect The URL the user will be redirected to after successfully logging in. Default: the URL originally requested. @type string $root The root URL of the site, used in case of error or mode 1 redirects. Default: the value of {@link bp_get_root_url()}. @type string $message An error message to display to the user on the log-in page. Default: "You must log in to access the page you requested." }
bp_core_no_access_wp_login_error(\WP_Error $errors) : \WP_Error
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.7.0 Hook moved to 'wp_login_errors' made available since WP 3.6.0. |
\WP_Error
Current error container.
\WP_Error
bp_core_number_format(integer $number= 0
, boolean $decimals= false
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
The number to be formatted.
boolean
Whether to use decimals. See {@link number_format_i18n()}.
string
The formatted number.bp_core_on_directory_page_delete(integer $post_id)
Bails early on multisite installations when not viewing the root site.
package | BuddyPress |
---|---|
link | https://buddypress.trac.wordpress.org/ticket/6226 |
since | 2.2.0 |
integer
Post ID.
bp_core_optouts_admin()
Depending on the context, display
Also prepare the admin notices.
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_core_optouts_admin_index()
package | BuddyPress |
---|---|
since | 8.0.0 |
global | string $plugin_page |
global | object $bp_optouts_list_table List table instance for nonmember opt-outs admin page. |
bp_core_optouts_admin_load()
Loaded before the page is rendered, this function does all initial setup, including: processing form requests, registering contextual help, and setting up screen options.
package | BuddyPress |
---|---|
since | 8.0.0 |
global | object $bp_optouts_list_table List table instance for nonmember opt-outs admin page. |
bp_core_optouts_admin_manage(string $action = ''
) : null | false
bp_core_parse_args_array(array $old_args_keys, array $func_args) : array
The purpose of this function is to help with backward compatibility in cases where
function foo( $bar = 1, $baz = false, $barry = array(), $blip = false ) { // ...
is deprecated in favor of
function foo( $args = array() ) { $defaults = array( 'bar' => 1, 'arg2' => false, 'arg3' => array(), 'arg4' => false, ); $r = bp_parse_args( $args, $defaults ); // ...
The first argument, $old_args_keys, is an array that matches the parameter positions (keys) to the new $args keys (values):
$old_args_keys = array( 0 => 'bar', // because $bar was the 0th parameter for foo() 1 => 'baz', // because $baz was the 1st parameter for foo() 2 => 'barry', // etc 3 => 'blip' );
For the second argument, $func_args, you should just pass the value of func_get_args().
package | BuddyPress |
---|---|
since | 1.6.0 |
array
Old argument indexes, keyed to their positions.
array
The parameters passed to the originating function.
array
$new_args The parsed arguments.bp_core_print_admin_notices()
BuddyPress combines all its messages into a single notice, to avoid a preponderance of yellow boxes.
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_core_print_generation_time()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 2.6.0 |
bp_core_process_spammer_status(integer $user_id, string $status, boolean $do_wp_cleanup = true
) : boolean
This function is called from three places:
package | BuddyPress |
---|---|
since | 1.6.0 |
global | wpdb $wpdb WordPress database object. |
integer
The ID of the user being spammed/hammed.
string
'spam' if being marked as spam, 'ham' otherwise.
boolean
Optional. True to force the cleanup of WordPress content and status, otherwise false. Generally, this should only be false if WordPress is expected to have performed this cleanup independently, as when hooked to 'make_spam_user'.
boolean
bp_core_record_activity() : false | null
Many functions use a "last active" feature to show the length of time since the user was last active. This function will update that time as a usermeta setting for the user every 5 minutes while the user is actively browsing the site.
package | BuddyPress |
---|---|
since | 1.0.0 |
false
null
Returns false if there is nothing to do.bp_core_redirect(string $location= ''
, integer $status= 302
)
package | BuddyPress |
---|---|
since | 1.0.0 |
string
The redirect URL.
integer
Optional. The numeric code to give in the redirect headers. Default: 302.
bp_core_referrer() : string
bp_core_register_common_scripts()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_core_register_common_styles()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_core_register_deprecated_scripts()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_core_register_deprecated_styles()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_core_register_nav_screen_function(array|string $args = ''
) : false | null
package | BuddyPress |
---|---|
since | 2.4.0 |
array
string
{
Array describing the new nav item.
@type string $name Display name for the nav item.
@type string $slug Unique URL slug for the nav item.
@type bool|string $item_css_id Optional. 'id' attribute for the nav item. Default: the value of $slug
.
@type bool $show_for_displayed_user Optional. Whether the nav item should be visible when viewing a
member profile other than your own. Default: true.
@type bool $site_admin_only Optional. Whether the nav item should be visible only to site admins
(those with the 'bp_moderate' cap). Default: false.
@type int $position Optional. Numerical index specifying where the item should appear in
the nav array. Default: 99.
@type callable $screen_function The callback function that will run when the nav item is clicked.
@type bool|string $default_subnav_slug Optional. The slug of the default subnav item to select when the nav
item is clicked.
}
false
null
Returns false on failure.bp_core_remove_data(integer $user_id)
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
The user ID for the user to delete usermeta for.
bp_core_remove_data_on_delete_user(integer $user_id)
bp_core_remove_nav_item(string $slug, string|null $component = null
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.6.0 Introduced the `$component` parameter. |
string
The slug of the primary navigation item.
string
null
The component the navigation is attached to. Defaults to 'members'.
boolean
Returns false on failure, True on success.bp_core_render_email_template(string $template) : string
Misuses the template_include
filter which expects a string, but as we need to replace
the {{{content}}}
token with the post's content, we use object buffering to load the
template, replace the token, and render it.
The function returns an empty string to prevent WordPress rendering another template.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Path to template (probably single.php).
string
bp_core_replace_tokens_in_text(string $text, array $tokens) : string
Intended for use with the email system introduced in BuddyPress 2.5.0.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Text to replace tokens in.
array
Token names and replacement values for the $text.
string
bp_core_reset_incrementor(string $group) : boolean
Call this function when all incrementor-based caches associated with a given cache group should be invalidated.
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Cache group. Eg 'bp_activity'.
boolean
bp_core_screen_activation()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_core_screen_delete_account()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_delete_account_content()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_delete_account_title()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_general_settings()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_general_settings_content()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_general_settings_title()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_notification_settings()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_notification_settings_content()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_screen_notification_settings_title()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.6.0 |
bp_core_set_ajax_uri_globals()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_core_set_avatar_constants()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_core_set_avatar_globals()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_core_set_charset() : string
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 2.7.0 |
string
The default database character-set, if set.bp_core_set_incremented_cache(string $key, string $group, mixed $value) : boolean
An "incremented key" is a cache key that is hashed with a unique incrementor, allowing for bulk invalidation.
Use this method when caching data that should be invalidated whenever any object of a given type is created, updated, or deleted. This usually means data related to object queries, which can only reliably cached until the underlying set of objects has been modified. See, eg, BP_Activity_Activity::get().
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Unique key for the query. Usually a SQL string.
string
Cache group. Eg 'bp_activity'.
mixed
The value to store.
boolean
bp_core_set_unique_directory_page_slug(string $slug= ''
, integer $post_ID= 0
, string $post_status= ''
, string $post_type= ''
, integer $post_parent= 0
, string $original_slug= ''
)
Goal is to avoid a slug conflict between a Page and a Component's directory page post_name
.
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The post slug.
integer
Post ID.
string
The post status.
string
Post type.
integer
Post parent ID.
string
The original post slug.
bp_core_set_uri_globals()
BuddyPress can use complete custom friendly URIs without the user having to add new rewrite rules. Custom components are able to use their own custom URI structures with very little work.
The URIs are broken down as follows:
Example:
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
bp_core_setup_query_parser()
The legacy request parser needs key actions to hook at bp_init
, while the BP Rewrites API
needs key actions to hook at bp_parse_query
.
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_core_signup_avatar_upload_dir() : string | boolean
bp_core_signup_blog(string $blog_domain, string $blog_path, string $blog_title, string $user_name, string $user_email, string $usermeta) : boolean | null
package | BuddyPress |
---|---|
since | 1.2.2 |
string
Domain requested by user.
string
Path requested by user.
string
Title as entered by user.
string
user_login of requesting user.
string
Email address of requesting user.
string
Miscellaneous metadata for the user.
boolean
null
bp_core_signup_disable_inactive(\WP_User|\WP_Error|null $user= null
, string $username= ''
, string $password= ''
) : \WP_User | \WP_Error
package | BuddyPress |
---|---|
since | 1.2.2 |
\WP_User
\WP_Error
null
Either the WP_User or the WP_Error object.
string
The inputted, attempted username.
string
The inputted, attempted password.
\WP_User
\WP_Error
bp_core_signup_send_validation_email(integer|boolean $user_id, string $user_email, string $key, string $salutation = ''
)
package | BuddyPress |
---|---|
since | 1.2.2 |
since | 2.5.0 Add the $user_login parameter. |
since | 5.0.0 Change $user_login parameter to more general $salutation. |
integer
boolean
ID of the new user, false if BP_SIGNUPS_SKIP_USER_CREATION is true.
string
Email address of the new user.
string
Activation key.
string
Optional. The name to be used as a salutation in the email.
bp_core_signup_user(string $user_login, string $user_password, string $user_email, array $usermeta) : integer | false
package | BuddyPress |
---|---|
since | 1.2.0 |
todo | There appears to be a bug in the return value on success. |
string
Login name requested by the user.
string
Password requested by the user.
string
Email address entered by the user.
array
Miscellaneous metadata about the user (blog-specific signup data, xprofile data, etc).
integer
false
True on success, WP_Error on failure.bp_core_sort_nav_items() : boolean | null
The sorting is split into a separate function because it can only happen after all plugins have had a chance to register their navigation items.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 2.6.0 |
boolean
null
Returns false on failure.bp_core_time_diff(array $args = array()
) : null | array | false
Based on function created by Dunstan Orchard - http://1976design.com
package | BuddyPress |
---|---|
since | 8.0.0 |
array
{ An array of arguments. All arguments are technically optional.
@type int|string $older_date An integer Unix timestamp or a date string of the format 'Y-m-d h:i:s'.
@type int|string $newer_date An integer Unix timestamp or a date string of the format 'Y-m-d h:i:s'.
@type int $time_chunks The number of time chunks to get (1 or 2).
}
null
array
false
Null if there's no time diff. An array containing 1 or 2 chunks
of human time. False if travelling into the future.bp_core_time_old(integer|string $birth_date) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
string
A timestamp or a MySQL formatted date.
string
The age to display.bp_core_time_since(integer|string $older_date, integer|boolean $newer_date = false
) : string
This function will return an English representation of the time elapsed since a given date. eg: 2 hours, 50 minutes eg: 4 days eg: 4 weeks, 6 days
Note that fractions of minutes are not represented in the return string. So an interval of 3 minutes will be represented by "3 minutes ago", as will an interval of 3 minutes 59 seconds.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 8.0.0 Move the time difference calculation into `bp_core_time_diff()`. |
integer
string
The earlier time from which you're calculating the time elapsed. Enter either as an integer Unix timestamp, or as a date string of the format 'Y-m-d h:i:s'.
integer
boolean
Optional. Unix timestamp of date to compare older date to. Default: false (current time).
string
String representing the time since the older date, eg
"2 hours, 50 minutes".bp_core_ucfirst(string $str) : string
Uses multibyte functions when available on the PHP build.
package | BuddyPress |
---|---|
since | 1.0.0 |
string
String to be upper-cased.
string
bp_core_update_directory_page_ids(array $blog_page_ids)
The bp-pages data is stored in site_options (falls back to options on non-MS), in an array keyed by blog_id. This allows you to change your bp_get_root_blog_id() and go through the setup process again.
package | BuddyPress |
---|---|
since | 1.5.0 |
array
The IDs of the WP pages corresponding to BP component directories.
bp_core_update_member_status(integer $user_id= 0
, string $value= 0
) : boolean
package | BuddyPress |
---|---|
since | 5.0.0 |
integer
The user ID to spam or ham.
string
'0' to mark the user as ham
, '1' to mark as spam
.
boolean
True if the spam status of the member changed.
False otherwise.bp_core_upgrade_signups()
This is necessary because WordPress's pre_schema_upgrade()
function wraps
table ALTER's in multisite checks, and other plugins may have installed their
own sign-ups table; Eg: Gravity Forms User Registration Add On.
package | BuddyPress |
---|---|
since | 2.0.1 |
see | |
link | WordPress Trac Ticket |
link | BuddyPress Trac Ticket |
global | wpdb $wpdb WordPress database object. |
bp_core_validate_blog_signup(string $blog_url, string $blog_title) : array
package | BuddyPress |
---|---|
since | 1.2.2 |
todo | Why do we have this wrapper? |
string
Blog URL requested during registration.
string
Blog title requested during registration.
array
bp_core_validate_email_address(string $user_email) : boolean | array
Performs the following checks:
package | BuddyPress |
---|---|
since | 1.6.2 |
since | 15.0.0 Check if the email address is already used in a signup. |
string
The email being checked.
boolean
array
True if the address passes all checks; otherwise an array
of error codes.bp_core_validate_user_signup(string $user_name, string $user_email) : array
package | BuddyPress |
---|---|
since | 1.2.2 |
string
Username to validate.
string
Email address to validate.
array
Results of user validation including errors, if any.bp_core_wpsignup_redirect()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_create_blog_link()
This function is not used by BuddyPress as of 1.2, but is kept here for older themes that may still be using it.
package | BuddyPress |
---|
bp_create_excerpt(string $text, integer $length= 225
, array $options= array()
) : string
Cuts a string to the length of $length and replaces the last characters with the ending if the text is longer than length.
This function is borrowed from CakePHP v2.0, under the MIT license. See http://book.cakephp.org/view/1469/Text#truncate-1625
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.6.0 Added 'strip_tags' and 'remove_links' as $options args. |
string
String to truncate.
integer
Optional. Length of returned string, including ellipsis. Default: 225.
array
{ An array of HTML attributes and options. Each item is optional. @type string $ending The string used after truncation. Default: ' […]'. @type bool $exact If true, $text will be trimmed to exactly $length. If false, $text will not be cut mid-word. Default: false. @type bool $html If true, don't include HTML tags when calculating excerpt length. Default: true. @type bool $filter_shortcodes If true, shortcodes will be stripped. Default: true. @type bool $strip_tags If true, HTML tags will be stripped. Default: false. Only applicable if $html is set to false. @type bool $remove_links If true, URLs will be stripped. Default: false. Only applicable if $html is set to false. }
string
Trimmed string.bp_current_action() : string
bp_current_component() : string
bp_current_group_description()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_current_group_id()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_current_group_name()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_current_group_slug()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_current_item() : string | boolean
bp_current_theme_supports(array $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 14.0.0 |
array
An associative array containing ONE feature & keyed by the BP Component ID.
boolean
True if the theme supports the BP feature. False otherwise.bp_current_user_can(string $capability, array|integer $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
since | 2.4.0 Second argument modified to accept an array, rather than `$blog_id`. |
since | 2.7.0 Deprecated $args['blog_id'] in favor of $args['site_id']. |
string
Capability or role name.
array
integer
{ Array of extra arguments applicable to the capability check. @type int $site_id Optional. Blog ID. Defaults to the BP root blog. @type int $blog_id Deprecated. Use $site_id instead. @type mixed $a,... Optional. Extra arguments applicable to the capability check. }
boolean
True if the user has the cap for the given parameters.bp_current_user_can_moderate() : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
boolean
True if current user can moderate the community. False otherwise.bp_custom_group_admin_tabs()
package | BuddyPress |
---|---|
todo | deprecate. |
since | 1.0.0 |
bp_custom_group_boxes()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_custom_group_fields()
package | BuddyPress |
---|---|
todo | deprecate. |
since | 1.0.0 |
bp_custom_group_fields_editable()
package | BuddyPress |
---|---|
todo | deprecate. |
since | 1.0.0 |
bp_custom_profile_boxes()
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_customize_register(\WP_Customize_Manager $customizer)
bp_deactivation()
Runs on BuddyPress deactivation.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_delete_option(string $option_name) : boolean
This is a wrapper for delete_blog_option(), which in turn deletes settings data (such as bp-pages) on the appropriate blog, given your current setup.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The option key to be deleted.
boolean
bp_delete_optout_by_id(integer $id = 0
) : boolean
bp_delete_rewrite_rules()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_delete_site(integer|\WP_Error $site_id_or_error, boolean|\WP_Site $drop_or_site = false
)
This hook makes sure BuddyPress is back compatible with WordPress versions < 5.1.0.
package | BuddyPress |
---|---|
since | 6.0.0 |
integer
\WP_Error
A WP Error object or the site ID.
boolean
\WP_Site
A WP Site object or a boolean to inform whether site's table should be dropped.
bp_delete_site_hook() : string
WordPress 5.1.0 deprecated the delete_blog
action. As BuddyPress is supporting WordPress back
to 4.9.0, this function makes sure we are using the new hook wp_validate_site_deletion
when the
current WordPress version is upper or equal to 5.1.0 and that we keep on using delete_blog
for
earlier versions of WordPress.
package | BuddyPress |
---|---|
since | 6.0.0 |
deprecated | 10.0.0 |
string
The name of the hook to use.bp_delete_site_no_tables_drop(\WP_Site $site)
bp_delete_term(integer $term_id= 0
, string $taxonomy= ''
) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
integer
The BP Term ID. Required.
string
The BP Taxonomy Name. Required.
boolean
\WP_Error
True on success, WP_Error on failure.bp_deregister_template_stack(string $location_callback= ''
, integer $priority= 10
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
see |
string
Callback function that returns the stack location.
integer
Optional. The priority parameter passed to {@link bp_register_template_stack()}. Default: 10.
boolean
See {@link remove_filter()}.bp_detect_theme_compat_with_current_theme() : boolean
Theme compat is disabled when a theme meets one of the following criteria: 1) It declares BP support with add_theme_support( 'buddypress' ) 2) It is bp-default, or a child theme of bp-default 3) A legacy template is found at members/members-loop.php. This is a fallback check for themes that were derived from bp-default, and have not been updated for BP 1.7+; we make the assumption that any theme in this category will have the members-loop.php template, and so use its presence as an indicator that theme compatibility is not required.
package | BuddyPress |
---|---|
since | 1.9.0 |
boolean
True if the current theme needs theme compatibility.bp_dir_is_vert_layout() : boolean
Checks if activity, members, groups, blogs has the vert nav layout selected.
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
bp_directory_blogs_search_form()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_directory_groups_search_form()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_directory_members_search_form()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_disable_account_deletion(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
Optional. Fallback value if not found in the database. Default: true.
boolean
True if users are able to delete their own accounts, otherwise
false.bp_disable_avatar_uploads(boolean $default_value = true
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
Optional. Fallback value if not found in the database. Default: true.
boolean
True if avatar uploads are disabled, otherwise false.bp_disable_blogforum_comments(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
todo | split and move into blog and forum components. |
boolean
Optional. Fallback value if not found in the database. Default: false.
boolean
True if activity comments are disabled for blog and forum
items, otherwise false.bp_disable_cover_image_uploads(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
Optional. Fallback value if not found in the database. Default: false.
boolean
True if cover image uploads are disabled, otherwise false.bp_disable_group_activity_deletions(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 14.0.0 |
boolean
Optional. Fallback value if not found in the database. Default: false.
boolean
True if group activity deletions are disabled, otherwise false.bp_disable_group_avatar_uploads(boolean|null $default_value = null
) : boolean
For backward compatibility, this option falls back on the value of 'bp-disable-avatar-uploads' when no value is found in the database.
package | BuddyPress |
---|---|
since | 2.3.0 |
boolean
null
Optional. Fallback value if not found in the database.
Defaults to the value of bp_disable_avatar_uploads()
.
boolean
True if group avatar uploads are disabled, otherwise false.bp_disable_group_cover_image_uploads(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
Optional. Fallback value if not found in the database. Default: false.
boolean
True if group cover image uploads are disabled, otherwise false.bp_disable_profile_sync(boolean $default_value = false
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
Optional. Fallback value if not found in the database. Default: true.
boolean
True if profile sync is enabled, otherwise false.bp_displayed_user_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for a description of params. |
array
string
{@see bp_get_displayed_user_avatar()}.
bp_displayed_user_domain() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 12.0.0 This function is now an alias of `bp_displayed_user_url()`. You should only use it to get the "home" URL of the displayed user's profile page. If you need to build an URL to reach another page, we strongly advise you to use `bp_displayed_user_url()`. |
todo | Deprecating this function would be safer. |
string
bp_displayed_user_email()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_displayed_user_front_template_part()
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_displayed_user_fullname()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_displayed_user_get_front_template(object|null $displayed_user = null
) : string | boolean
package | BuddyPress |
---|---|
since | 2.6.0 |
object
null
Optional. Falls back to current user if not passed.
string
boolean
Path to front template on success; boolean false on failure.bp_displayed_user_has_front_template()
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_displayed_user_id() : integer
bp_displayed_user_link($chunks = array()
)
bp_displayed_user_mentionname()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_displayed_user_url(array $path_chunks = array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
array
{ An array of arguments. Optional.
@type string $single_item_component The component slug the action is relative to.
@type string $single_item_action The slug of the action to perform.
@type array $single_item_action_variables An array of additional informations about the action to perform.
}
string
The logged-in user's profile URL.bp_displayed_user_use_cover_image_header() : boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
True if the displayed user has a cover image,
False otherwisebp_displayed_user_username()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_do_404(string $redirect = 'remove_canonical_direct'
)
package | BuddyPress |
---|---|
since | 1.5.0 |
global | WP_Query $wp_query WordPress query object. |
string
If 'remove_canonical_direct', remove WordPress' "helpful" redirect_canonical action. Default: 'remove_canonical_redirect'.
bp_do_register_theme_directory() : boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
deprecated | 12.0.0 |
boolean
True if bp-themes should be registered, false otherwise.bp_do_theme_compat() : boolean
package | BuddyPress |
---|---|
since | 1.8.0 |
boolean
True if the_content is currently in the process of being
filtered and replaced.bp_dtheme_add_blog_comments_js()
As of 1.5.x, we recommend that you enqueue the comment-reply JavaScript in your theme's header.php.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Enqueue the comment-reply script in your theme's header.php. |
since | 1.2.0 |
bp_dtheme_deprecated()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
since | 1.5.0 |
bp_dtheme_fix_get_posts_on_activity_front()
As of 1.5.x, it is no longer required.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | No longer required. |
since | 1.2.0 |
bp_dtheme_fix_the_posts_on_activity_front(array $posts) : array
As of 1.5.x, it is no longer required.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | No longer required. |
since | 1.2.5 |
array
Posts as retrieved by WP_Query
array
bp_dtheme_page_on_front_template(string $template) : string
As of 1.5.x, it is no longer required.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | No longer required. |
since | 1.2.0 |
string
Absolute path to the page template
string
bp_dtheme_page_on_front_update(string $oldvalue, $newvalue) : false | string
As of 1.5.x, it is no longer required.
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | No longer required. |
since | 1.2.0 |
string
string
Previous value of get_option( 'page_on_front' )
false
string
bp_dtheme_wp_pages_filter(string $page_html) : string
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | No longer required. |
see | |
since | 1.2.0 |
string
A list of pages as a dropdown (select list)
string
bp_email_add_link_color_to_template(string $value, string $property_name, string $transform) : string
This is only used when the email content has been merged into the email template.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Property value.
string
Email template property name.
string
How the return value was transformed.
string
Updated value.bp_email_customizer_hide_sections(boolean $active, \WP_Customize_Section $section) : boolean
package | BuddyPress |
---|---|
since | 2.5.0 |
boolean
Whether the Customizer section is active.
\WP_Customize_Section
{@see WP_Customize_Section} instance.
boolean
bp_email_get_appearance_settings() : array
package | BuddyPress |
---|---|
since | 2.5.0 |
since | 3.0.0 Added "direction" parameter for LTR/RTL email support, and "link_text_color" to override that in the email body. |
array
bp_email_get_customizer_controls() : array
bp_email_get_customizer_sections() : array
bp_email_get_customizer_settings() : array
bp_email_get_salt() : string | null
bp_email_get_salutation(array $settings = array()
) : string
package | BuddyPress |
---|---|
since | 2.5.0 |
since | 8.0.0 Checks current BP Email type schema to eventually use the unnamed salutation. |
array
Email Settings.
string
The Recipient Salutation.bp_email_get_schema() : array
package | BuddyPress |
---|---|
since | 2.5.1 |
since | 10.0.0 Added members-membership-request and members-membership-request-rejected email types. |
array
bp_email_get_template(\WP_Post $object) : array
package | BuddyPress |
---|---|
since | 2.5.0 |
\WP_Post
Post to get email template for.
array
bp_email_get_type(integer|\WP_Post $email = null
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
\WP_Post
Optional. BP Email ID or BP Email object. Defaults to global $post.
string
The type of the BP Email object.bp_email_get_type_schema(string $field = 'description'
) : array
package | BuddyPress |
---|---|
since | 2.5.1 |
since | 2.7.0 $field argument added. |
string
Optional; defaults to "description" for backwards compatibility. Other values: "all".
array
{
The array of email types and their schema.
@type string $description The description of the action which causes this to trigger.
@type array $unsubscribe {
Replacing this with false indicates that a user cannot unsubscribe from this type.
@type string $meta_key The meta_key used to toggle the email setting for this notification.
@type string $message The message shown when the user has successfully unsubscribed.
}bp_email_get_unsubscribe_link(array $args) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
array
{ Used to build unsubscribe query string.
@type string $notification_type Which notification type is being sent. @type string $user_id The ID of the user to whom the notification is sent. @type string $redirect_to Optional. The url to which the user will be redirected. Default is the activity directory. @type string $email Optional. The email address of the user to whom the notification is sent. }
string
The unsubscribe link.bp_email_get_unsubscribe_type_schema() : array
bp_email_init_customizer(\WP_Customize_Manager $wp_customize)
bp_email_plaintext_entity_decode(string $retval, string $prop, string $transform) : string | null
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Current email content.
string
Email property to check against.
string
Either 'raw' or 'replace-tokens'.
string
null
$retval Modified email content.bp_email_redirect_to_customizer()
package | BuddyPress |
---|---|
since | 2.5.0 |
bp_email_set_default_headers(array $headers, string $property, string $transform, \BP_Email $email) : array
package | BuddyPress |
---|---|
since | 2.5.0 |
array
Array of email headers.
string
Name of property. Unused.
string
Return value transformation. Unused.
\BP_Email
Email object reference.
array
bp_email_set_default_tokens(array $tokens, string $property_name, string $transform, \BP_Email $email) : array
package | BuddyPress |
---|---|
since | 2.5.0 |
array
Email tokens.
string
Unused.
string
Unused.
\BP_Email
Email being sent.
array
bp_email_the_salutation(array $settings = array()
)
bp_email_unsubscribe_handler()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_enqueue_block_editor_assets()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_enqueue_community_scripts()
package | BuddyPress |
---|---|
since | 11.0.0 |
bp_enqueue_context_scripts(string $context = 'embed'
)
package | BuddyPress |
---|---|
since | 11.0.0 |
string
The specific BuddyPress context. Supported values are embed
and community
.
Default: embed
.
bp_enqueue_scripts()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_esc_like(string $text) : string
In WordPress 4.0, like_escape() was deprecated, due to incorrect documentation and improper sanitization leading to a history of misuse. To maintain compatibility with versions of WP before 4.0, we duplicate the logic of the replacement, wpdb::esc_like().
package | BuddyPress |
---|---|
since | 2.1.0 |
global | wpdb $wpdb WordPress database object. |
see | for more details on proper use. |
string
The raw text to be escaped.
string
Text in the form of a LIKE phrase. Not SQL safe. Run through
wpdb::prepare() before use.bp_esc_sql_order(string $order = ''
) : string
Strings like 'DESC', 'desc', ' desc' will be interpreted into 'DESC'. Everything else becomes 'ASC'.
package | BuddyPress |
---|---|
since | 1.8.0 |
string
The 'order' string, as passed to the SQL constructor.
string
The sanitized value 'DESC' or 'ASC'.bp_exists(string $component_name) : boolean
bp_field_css_class(mixed $class = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
mixed
Extra classes to append to class attribute. Pass multiple class names as an array or space-delimited string.
bp_field_has_data() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_field_has_public_data() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
boolean
bp_filter_rest_request_blog_url(\WP_REST_Request $request, string $url) : \WP_REST_Request
First part in embedding the latest blog post.
package | BuddyPress |
---|---|
link | https://github.com/buddypress/BP-REST/pull/395 |
\WP_REST_Request
Request used to generate the response.
string
URL being requested.
\WP_REST_Request
bp_form_field_attributes(string $name= ''
, array $attributes= array()
)
package | BuddyPress |
---|---|
since | 2.2.0 |
string
The field name to output attributes for.
array
Array of existing attributes to add.
bp_form_option(string $option, string $default_option= ''
, boolean $slug= false
)
package | BuddyPress |
---|---|
since | 1.6.0 |
string
Form option to echo.
string
Form option default.
boolean
Form option slug.
bp_format_time(integer|string $time= ''
, boolean $exclude_time= false
, boolean $gmt= true
) : mixed
This function can be used to turn a UNIX timestamp into a properly formatted (and possibly localized) string, useful for outputting the date & time an action took place.
Not to be confused with bp_core_time_since()
, this function is best used
for displaying a more exact date and time vs. a human-readable time.
Note: This function may be improved or removed at a later date, as it is hardly used and adds an additional layer of complexity to calculating dates and times together with timezone offsets and i18n.
package | BuddyPress |
---|---|
since | 1.1.0 |
integer
string
The UNIX timestamp to be formatted.
boolean
Optional. True to return only the month + day, false to return month, day, and time. Default: false.
boolean
Optional. True to display in local time, false to leave in GMT. Default: true.
mixed
A string representation of $time, in the format
"March 18, 2014 at 2:00 pm" (or whatever your
'date_format' and 'time_format' settings are
on your root blog). False on failure.bp_forums_parent_forum_id() : integer
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 3.0.0 Supported for compatibility with bbPress 2. |
integer
Forum ID.bp_friend_accept_request_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_friend_friendship_id()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_friend_get_total_requests_count(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user whose requests are being counted. Default: ID of the logged-in user.
integer
Friend count.bp_friend_reject_request_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_friend_search_form()
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_friend_total_requests_count(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user whose requests are being counted. Default: ID of the logged-in user.
bp_friends_add_friendship_accepted_notification(integer $friendship_id, integer $initiator_user_id, integer $friend_user_id)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
The unique ID of the friendship.
integer
The friendship initiator user ID.
integer
The friendship request receiver user ID.
bp_friends_blocks_add_script_data()
Only used for the BP Friends block.
package | BuddyPress |
---|---|
since | 9.0.0 |
bp_friends_clear_bp_friends_friendships_cache(integer $friendship_id, integer $initiator_user_id, integer $friend_user_id)
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
ID of the friendship that has changed.
integer
ID of the first user.
integer
ID of the second user.
bp_friends_clear_bp_friends_friendships_cache_remove(integer $friendship_id, \BP_Friends_Friendship $friendship)
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
The friendship ID.
\BP_Friends_Friendship
The friendship object.
bp_friends_clear_request_cache(integer $friend_user_id)
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The user ID not initiating the friendship.
bp_friends_clear_request_cache_on_remove(integer $friendship_id, \BP_Friends_Friendship $friendship)
A friendship is deemed removed when a friendship is withdrawn or rejected.
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The friendship ID.
\BP_Friends_Friendship
The friendship object.
bp_friends_clear_request_cache_on_save(integer $friendship_id, integer $initiator_user_id, integer $friend_user_id)
A friendship is deemed saved when a friendship is requested or accepted.
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The friendship ID.
integer
The user ID initiating the friendship.
integer
The user ID not initiating the friendship.
bp_friends_delete_activity_on_friendship_delete(integer $friendship_id)
bp_friends_delete_activity_on_user_delete(integer $user_id = 0
)
bp_friends_delete_cached_friendships_on_friendship_save(\BP_Friends_Friendship|\stdClass $friendship)
package | BuddyPress |
---|---|
since | 3.0.0 |
\BP_Friends_Friendship
\stdClass
The friendship object.
bp_friends_filter_activity_just_me_scope(array $retval= array()
, array $filter= array()
) : array
For details on the syntax, see BP_Activity_Query.
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
bp_friends_filter_activity_scope(array $retval= array()
, array $filter= array()
) : array
For details on the syntax, see BP_Activity_Query.
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
bp_friends_filter_title()
package | BuddyPress |
---|---|
deprecated | 1.6.0 |
deprecated | No longer used |
bp_friends_filter_user_query_populate_extras(\BP_User_Query $user_query, string $user_ids_sql)
Each member in the user query is checked for confirmed friendship status against the logged-in user.
package | BuddyPress |
---|---|
since | 1.7.0 |
\BP_User_Query
The BP_User_Query object.
string
Comma-separated list of user IDs to fetch extra data for, as determined by BP_User_Query.
bp_friends_format_activity_action_friendship_accepted(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Activity action string.
object
Activity data.
string
Formatted activity action.bp_friends_format_activity_action_friendship_created(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data.
string
Formatted activity action.bp_friends_friendship_accepted_activity(integer $friendship_id, integer $initiator_user_id, integer $friend_user_id)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the friendship.
integer
ID of friendship initiator.
integer
ID of user whose friendship is requested.
bp_friends_friendship_requested_notification(integer $friendship_id, integer $initiator_user_id, integer $friend_user_id)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
The unique ID of the friendship.
integer
The friendship initiator user ID.
integer
The friendship request receiver user ID.
bp_friends_get_profile_stats(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
before|after|user_id.
string
HTML for stats output.bp_friends_header_tabs()
package | BuddyPress |
---|---|
deprecated | 1.6.0 |
deprecated | No longer used |
bp_friends_mark_friendship_accepted_notifications_by_type()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_friends_mark_friendship_rejected_notifications_by_item_id(integer $friendship_id, \BP_Friends_Friendship $friendship)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
Friendship ID (not used).
\BP_Friends_Friendship
The friendship object.
bp_friends_mark_friendship_request_notifications_by_type()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_friends_mark_friendship_withdrawn_notifications_by_item_id(integer $friendship_id, \BP_Friends_Friendship $friendship)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
Friendship ID (not used).
\BP_Friends_Friendship
The friendship object.
bp_friends_pending_received_requests_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_friends_pending_sent_requests_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_friends_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_friends_prefetch_activity_object_data(array $activities) : array
This reduces database overhead during the activity loop.
package | BuddyPress |
---|---|
since | 2.0.0 |
array
Array of activity items.
array
bp_friends_prime_mentions_results()
This is intended to speed up @mentions lookups for a majority of use cases.
package | BuddyPress |
---|---|
since | 2.1.0 |
see |
bp_friends_profile_stats(array|string $args = ''
)
bp_friends_random_friends()
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_friends_random_members(integer $total_members = 5
)
This function is no longer used by BuddyPress core.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
integer
The number of members to retrieve.
bp_friends_register_personal_data_exporters(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_friends_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 9.0.0 |
since | 12.0.0 Uses the `@wordpress/scripts` `index.asset.php` generated file to get dependencies. |
array
Data about the scripts to register.
array
Data about the scripts to register.bp_friends_remove_data_on_delete_user(integer $user_id)
bp_friends_remove_notifications_data(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are removed.
bp_friends_render_friends_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_generate_rewrite_rules(\WP_Rewrite $wp_rewrite)
bp_get_activate_root_slug() : string
This function is used to set the BP Signup rewrite rule and permastruct.
package | BuddyPress |
---|---|
since | 15.0.0 |
string
The registration page root slug.bp_get_activate_slug() : string
bp_get_activation_page() : string
bp_get_activities_member_rss_link() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 1.2.0 |
todo | properly deprecate in favor of bp_get_member_activity_feed_link(). |
string
The member activity feed link.bp_get_activities_no_activity() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
global | string $bp_activity_no_activity |
string
bp_get_activities_title() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
global | string $bp_activity_title |
string
The activities title.bp_get_activity_action(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 1.7.0 Introduce function parameter, $args. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
array
{ @type bool $no_timestamp Whether to exclude the timestamp. }
string
The activity action.bp_get_activity_action_name() : string
Just a wrapper for bp_get_activity_type().
package | BuddyPress |
---|---|
since | 1.2.0 |
deprecated | 1.5.0 |
todo | Properly deprecate in favor of bp_get_activity_type(). |
string
The activity type.bp_get_activity_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
see | For a description of the arguments. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default: 'Profile picture of [user name]' if activity user name is available, otherwise 'Profile picture'. @type string $class Default: 'avatar'. @type string|bool $email Default: Email of the activity's associated user, if available. Otherwise false. @type string $type Default: 'full' when viewing a single activity permalink page, otherwise 'thumb'. @type int|bool $user_id Default: ID of the activity's user. }
string
User avatar string.bp_get_activity_comment_cancel_url() : string
bp_get_activity_comment_content() : string
The content is run through two filters. 'bp_get_activity_content' will apply all filters applied to activity items in general. Use 'bp_activity_comment_content' to modify the content of activity comments only.
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$content The content of the current activity comment.bp_get_activity_comment_date_recorded() : string | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
string
boolean
$date_recorded Time since the activity was recorded,
in the form "%s ago". False on failure.bp_get_activity_comment_date_recorded_raw() : string | boolean
package | BuddyPress |
---|---|
since | 2.3.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
boolean
$date_recorded Time since the activity was recorded,
in the form "%s ago". False on failure.bp_get_activity_comment_delete_link() : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
$link The nonced URL for deleting the current
activity comment.bp_get_activity_comment_form_action() : string
bp_get_activity_comment_form_nojs_display() : string | false
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
false
The activity comment form no JavaScript
display CSS. False on failure.bp_get_activity_comment_id() : integer | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
boolean
$comment_id The ID of the activity comment currently
being displayed, false if none is found.bp_get_activity_comment_link() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity comment link.bp_get_activity_comment_name() : string
The use of the 'bp_acomment_name' filter is deprecated. Please use 'bp_activity_comment_name'.
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$name The full name of the activity comment author.bp_get_activity_comment_permalink() : string
bp_get_activity_comment_user_id() : integer | boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
boolean
$user_id The user_id of the author of the displayed
activity comment. False on failure.bp_get_activity_comment_user_link() : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
$user_link The URL of the activity comment author's profile.bp_get_activity_content() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 1.5.0 |
todo | properly deprecate this function. |
string
The activity content.bp_get_activity_content_body() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity content body.bp_get_activity_count() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activity count.bp_get_activity_css_class() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity item's CSS class.bp_get_activity_date_recorded() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The date the activity was recorded.bp_get_activity_delete_link() : string
package | BuddyPress |
---|---|
since | 1.1.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$link Activity delete link. Contains $redirect_to arg
if on single activity page.bp_get_activity_delete_url() : string
package | BuddyPress |
---|---|
since | 2.1.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$link Activity delete link. Contains $redirect_to arg
if on single activity page.bp_get_activity_directory_permalink() : string
bp_get_activity_favorite_link() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity favorite link.bp_get_activity_feed_item_date() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity feed item date.bp_get_activity_feed_item_description() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity feed item description.bp_get_activity_feed_item_guid() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity feed item guid.bp_get_activity_feed_item_link() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity feed item link.bp_get_activity_feed_item_title() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$title The activity feed item title.bp_get_activity_filter_links(array|boolean $args = false
) : string | boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
array
boolean
{ @type string $style The type of markup to use for the links. 'list', 'paragraph', or 'span'. Default: 'list'. }
string
boolean
$component_links The activity filter links.
False on failure.bp_get_activity_id() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activity ID.bp_get_activity_is_favorite() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
True if user favorite, false otherwise.bp_get_activity_item_id() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activity item ID.bp_get_activity_latest_update(integer $user_id = 0
) : string | boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
If empty, will fall back on displayed user.
string
boolean
$latest_update The activity latest update link.
False on failure.bp_get_activity_load_more_link() : string
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 11.0.0 Adds the `offset_lower` query arg to avoid last displayed activity to be duplicated. |
global | BP_Activity_Template $activities_template The Activity template loop. |
string
$linkbp_get_activity_member_display_name() : string
package | BuddyPress |
---|---|
since | 2.1.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The date the activity was recorded.bp_get_activity_object_name() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity object name.bp_get_activity_pagination_count() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The pagination text.bp_get_activity_pagination_links() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The pagination links.bp_get_activity_parent_content(string $args = ''
) : mixed
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
Unused. Left over from an earlier implementation.
mixed
False on failure, otherwise the activity parent content.bp_get_activity_parent_user_id() : boolean | integer
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
boolean
integer
False if parent activity can't be found, otherwise
the parent activity's user ID.bp_get_activity_per_page() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activities per page.bp_get_activity_permalink_id() : string
bp_get_activity_post_form_action() : string
bp_get_activity_root_slug() : string
bp_get_activity_secondary_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of arguments. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
array
string
{ For a complete description of arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default value varies based on current activity item component. @type string $type Default: 'full' when viewing a single activity permalink page, otherwise 'thumb'. @type string $class Default: 'avatar'. @type string|bool $email Default: email of the activity's user. @type int|bool $user_id Default: ID of the activity's user. }
string
The secondary avatar.bp_get_activity_secondary_item_id() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activity secondary item ID.bp_get_activity_show_filters(string $context = ''
) : string
package | BuddyPress |
---|---|
since | 2.1.0 |
string
The current context. 'activity', 'member', 'member_groups', 'group'.
string
HTML for bp_get_activity_slug() : string
bp_get_activity_thread_permalink() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The Activity template loop. |
string
$link The activity thread permalink.bp_get_activity_type() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity type.bp_get_activity_unfavorite_link() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
The activity unfavorite link.bp_get_activity_user_id() : integer
package | BuddyPress |
---|---|
since | 1.1.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
integer
The activity user ID.bp_get_activity_user_link() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
$link The activity user link.bp_get_admin_url(string $path= ''
, string $scheme= 'admin'
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Optional. The sub-path under /wp-admin to be appended to the admin URL.
string
The scheme to use. Default is 'admin', which obeys {@link force_ssl_admin()} and {@link is_ssl()}. 'http' or 'https' can be passed to force those schemes.
string
Admin url link with optional path appended.bp_get_asset_template_part(string $slug, string|null $name= null
, array $args= array()
) : false | string
Basically the same as bp_get_template_part(), but with 'assets/' prepended to the slug.
package | BuddyPress |
---|---|
since | 2.6.0 |
since | 7.0.0 Added `$args` parameter. |
see | for full documentation. |
string
Template slug.
string
null
Template name.
array
Optional. Extra args to pass to locate_template().
false
string
bp_get_avatar_admin_step() : string
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The current avatar upload step. Returns 'upload-image'
if none is found.bp_get_avatar_delete_link() : string
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 6.0.0 Moved from /bp-xprofile/bp-xprofile-template.php to this file. |
string
bp_get_avatar_to_crop() : string
bp_get_avatar_to_crop_src() : string
bp_get_blog_avatar(array|string $args = ''
) : string | boolean
At the moment, unless the blog has a site icon, the blog's avatar defaults
to the /bp-core/images/mystery-blog.png image or the Blog's Admin user avatar
if the admin_user_id
argument contains the Blog's Admin user ID.
package | BuddyPress |
---|---|
since | 2.4.0 Introduced `$title` argument. |
since | 6.0.0 Introduced the `$blog_id`, `$admin_user_id` and `html` arguments. |
since | 7.0.0 Introduced the Blog's default avatar {@see bp_blogs_default_avatar()}. Removed the `'bp_get_blog_avatar_' . $blog_id` filter (it was deprecated since 1.5). |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default: 'Profile picture of site author [user name]'. @type string $class Default: 'avatar'. @type string $type Default: 'full'. @type int|bool $width Default: false. @type int|bool $height Default: false. @type bool $id Currently unused. @type bool $no_grav Default: false. @type int $blog_id The blog ID. Default: O. @type int $admin_user_id The Blog Admin user ID. Default: 0. @type bool $html Default: true. }
string
boolean
User avatar string. False if avatars are turned off.bp_get_blog_class(array $classes = array()
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
array
Array of custom classes.
string
Row class of the site.bp_get_blog_create_nav_item() : string
bp_get_blog_description() : string
bp_get_blog_id() : integer
bp_get_blog_last_active(array $args = array()
) : string
package | BuddyPress |
---|
array
{ Array of optional arguments. @type bool $active_format If true, formatted "Active 5 minutes ago". If false, formatted "5 minutes ago". Default: true. }
string
Last active date.bp_get_blog_latest_post(array $args = array()
) : string
package | BuddyPress |
---|
array
{ Array of optional arguments. @type bool $latest_format If true, formatted "Latest post: [link to post]". If false, formatted "[link to post]". Default: true. }
string
$retval String of the form 'Latest Post: [link to post]'.bp_get_blog_latest_post_content() : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
Content of the blog's latest post.bp_get_blog_latest_post_featured_image(string $size = 'thumbnail'
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
Image version to return. 'thumbnail', 'medium', 'large', or 'post-thumbnail'. Default: 'thumbnail'.
string
URL of the image.bp_get_blog_latest_post_permalink() : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
URL of the blog's latest post.bp_get_blog_latest_post_title() : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
Post title.bp_get_blog_name() : string
bp_get_blog_signup_allowed() : boolean
Returns true if is_multisite() and blog creation is enabled at Network Admin > Settings.
package | BuddyPress |
---|---|
since | 1.2.0 |
boolean
True if blog signup is allowed, otherwise false.bp_get_blogs_directory_permalink() : string
bp_get_blogs_directory_url(array $path_chunks = array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
array
{ An array of arguments. Optional.
@type int $create_single_item `1` to get the Blogs create link.
}
string
The URL built for the BP Rewrites URL parser.bp_get_blogs_pagination_count() : string
package | BuddyPress |
---|---|
since | 2.7.0 |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
bp_get_blogs_pagination_links() : string
package | BuddyPress |
---|---|
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
string
HTML pagination links.bp_get_blogs_root_slug() : string
bp_get_blogs_slug() : string
bp_get_canonical_url(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 1.6.0 |
array
{ Optional array of arguments. @type bool $include_query_args Whether to include current URL arguments in the canonical URL returned from the function. }
string
Canonical URL for the current page.bp_get_caps_for_role(string $role = ''
) : array
package | BuddyPress |
---|---|
since | 1.6.0 |
string
The role for which you're loading caps.
array
Capabilities for $role.bp_get_community_caps() : array
bp_get_community_visibility(string $component = 'global'
) : \arrary | string
package | BuddyPress |
---|---|
since | 12.0.0 |
string
Whether we want the visibility for a single component or for all components.
\arrary
string
$retval The calculated visbility settings for the site.bp_get_current_activation_key() : string
bp_get_current_blog_roles() : array
WordPress roles are dynamically flipped when calls to switch_to_blog() and restore_current_blog() are made, so we use and trust WordPress core to have loaded the correct results for us here. As enhancements are made to WordPress's RBAC, so should our capability functions here.
package | BuddyPress |
---|---|
since | 2.1.0 |
global | WP_Roles $wp_roles WordPress role management object. |
array
bp_get_current_group_description() : string
package | BuddyPress |
---|---|
since | 2.1.0 this output. |
string
The description of the current group, if there is one.bp_get_current_group_directory_type() : string
bp_get_current_group_id() : integer
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
$current_group_id The id of the current group, if there is one.bp_get_current_group_name() : string
bp_get_current_group_slug() : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
$current_group_slug The slug of the current group, if there is one.bp_get_current_member_type() : string
bp_get_current_profile_group_id() : integer
bp_get_current_signup_step() : string
bp_get_custom_translation_file(string $file_name = ''
) : string
package | BuddyPress |
---|---|
since | 14.0.0 |
string
The file name.
string
A file path or an empty string if no files were found into custom language locations.bp_get_db_version() : string
bp_get_db_version_raw() : string
bp_get_default_taxonomies() : array
bp_get_deprecated_functions_versions() : array
package | BuddyPress |
---|---|
since | 11.0.0 |
array
The list of versions needing their deprecated functions to be loaded.bp_get_directory_title(string $component = ''
) : string
Used for the
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Component to get directory title for.
string
bp_get_displayed_user() : object
bp_get_displayed_user_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default: 'Profile picture of [user name]'. @type bool $html Default: true. @type string $type Default: 'thumb'. @type int|bool $width Default: false. @type int|bool $height Default: false. }
string
User avatar string.bp_get_displayed_user_email() : string
bp_get_displayed_user_fullname() : string
bp_get_displayed_user_link() : string
bp_get_displayed_user_mentionname() : string
bp_get_displayed_user_nav()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_get_displayed_user_username() : string
bp_get_domain() : string
bp_get_dynamic_template_part(string $template= ''
, string $type= 'js'
, array $tokens= array()
, array $allowed_tags= array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
string
The Template Pack's relative path to the templata. Optional.
string
Whether to use the template for JavaScript or PHP.
Optional. Defaults to js
.
array
The data to use to customize the template. Optional.
array
The allowed tags to use. Optional.
string
HTML/JS output.bp_get_email(string $email_type) : \BP_Email | \WP_Error
This function pre-populates the object with the subject, content, and template from the appropriate email post type item. It does not replace placeholder tokens in the content with real values.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Unique identifier for a particular type of email.
\BP_Email
\WP_Error
BP_Email object, or WP_Error if there was a problem.bp_get_email_post_type() : string
bp_get_email_post_type_labels() : array
bp_get_email_post_type_supports() : array
bp_get_email_subject(array $args = array()
) : string
The blogname option is escaped with esc_html on the way into the database in sanitize_option, we want to reverse this for the plain text arena of emails.
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 2.5.0 No longer used by BuddyPress, but not deprecated in case any existing plugins use it. |
see |
array
{ Array of optional parameters. @type string $before String to appear before the site name in the email subject. Default: '['. @type string $after String to appear after the site name in the email subject. Default: ']'. @type string $default The default site name, to be used when none is found in the database. Default: 'Community'. @type string $text Text to append to the site name (ie, the main text of the email subject). }
string
Sanitized email subject.bp_get_email_tax_type() : string
bp_get_email_tax_type_args() : array
bp_get_email_tax_type_labels() : array
bp_get_field_css_class(string|boolean $class = false
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
string
boolean
Extra classes to append to class attribute.
string
bp_get_form_field_attributes(string $name= ''
, array $attributes= array()
) : string
Primarily to add better support for touchscreen devices, but plugin devs can use the 'bp_get_form_field_extra_attributes' filter for further manipulation.
package | BuddyPress |
---|---|
since | 2.2.0 |
string
The field name to get attributes for.
array
Array of existing attributes to add.
string
bp_get_form_option(string $option, string $default_option= ''
, boolean $slug= false
) : string
package | BuddyPress |
---|---|
since | 1.6.0 |
string
Form option to return.
string
Optional. Form option default. Default is empty string.
boolean
Optional. Form option slug. Default is false.
string
bp_get_friend_accept_request_link() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
accept-friendship URL.bp_get_friend_friendship_id() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
integer
ID of the friendship.bp_get_friend_ids(integer $user_id = 0
) : boolean | string
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
Optional. Default: the displayed user's ID, or the logged-in user's ID.
boolean
string
A comma-separated list of friend IDs if any are found,
otherwise false.bp_get_friend_reject_request_link() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
reject-friendship URL.bp_get_friends_root_slug() : string
bp_get_friends_slug() : string
bp_get_friendship_requests(integer $user_id = 0
) : array | integer
Note that we return a 0 if no pending requests are found. This is necessary because of the structure of the $include parameter in bp_has_members().
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of the user whose requests are being retrieved. Defaults to displayed user.
array
integer
An array of user IDs if found, or a 0 if none are found.bp_get_fullname_field_id_for_update() : integer
bp_get_group(false|integer|string|object|\BP_Groups_Group $group = false
) : \BP_Groups_Group | boolean
When used into the context of a Groups loop built by the BP_Groups_Template
class, it defaults to the
Group being iterated on.
package | BuddyPress |
---|---|
since | 10.0.0 |
global | BP_Groups_Template $groups_template The main Groups template loop class. |
false
integer
string
object
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
\BP_Groups_Group
boolean
The Group object if found, false otherwise.bp_get_group_accept_invite_link(object|boolean $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: Current group in the loop.
string
bp_get_group_activity_feed_link() : string
bp_get_group_admin_form_action(false|string|boolean $page= false
, false|integer|string|\BP_Groups_Group $group= false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
string
boolean
(Optional). Page slug. Default: false.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_admin_permalink(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_all_members_permalink(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_avatar(array|string $args= ''
, false|integer|string|\BP_Groups_Group $group= false
) : string | boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}.
@type string $type Default: 'full'.
@type int|bool $width Default: false.
@type int|bool $height Default: false.
@type string $class Default: 'avatar'.
@type bool $no_grav Default: false.
@type bool $html Default: true.
@type string|bool $id Passed to `$css_id` parameter. Default: false.
@type string $alt Default: 'Group logo of [group name]'.
}
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
boolean
HTML output for the Group Avatar. or false if avatar uploads is disabled.bp_get_group_avatar_delete_link() : string
bp_get_group_avatar_mini(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
HTML output for the Group Avatar.bp_get_group_avatar_thumb(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
HTML output for the Group Avatar.bp_get_group_avatar_url(false|integer|string|\BP_Groups_Group $group= false
, string $type= 'full'
) : string
package | BuddyPress |
---|---|
since | 5.0.0 |
since | 10.0.0 Updated to use `bp_get_group_avatar`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
Optional. The type of the avatar ('full' or 'thumb'). Default 'full'.
string
bp_get_group_by(string $field, string|integer $value) : \BP_Groups_Group | boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
string
(Required) The field to use to retrieve the group.
Possible values are 'id'
or 'slug'
.
string
integer
(Required) A value for the $field. A Group ID or slug.
\BP_Groups_Group
boolean
The Group object if found, false otherwise.bp_get_group_class(array $classes = array()
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
array
Array of custom classes.
string
Row class of the group.bp_get_group_cover_url(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 5.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
The cover image URL or empty string if not found.bp_get_group_create_nav_item() : string
bp_get_group_creation_form_action() : string
bp_get_group_creation_previous_link() : string
bp_get_group_creator_avatar(false|integer|string|\BP_Groups_Group $group= false
, array $args= array()
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
{ Array of optional arguments. See {@link bp_core_fetch_avatar()} for detailed description of arguments. @type string $type Default: 'full'. @type int $width Default: false. @type int $height Default: false. @type int $class Default: 'avatar'. @type string $id Passed to 'css_id'. Default: false. @type string $alt Alt text. Default: 'Group creator profile photo of [user display name]'. }
string
bp_get_group_creator_id(false|integer|string|\BP_Groups_Group $group = false
) : integer
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
bp_get_group_creator_permalink(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_creator_username(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_current_admin_tab() : string
bp_get_group_current_avatar(string $type = 'thumb'
) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Thumb or full.
string
$tab The current tab's slug.bp_get_group_date_created(false|integer|string|\BP_Groups_Group $group= false
, array|string $args= array()
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added `$args` as a parameter. |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
string
{ Array of optional parameters.
@type bool $relative Optional. If true, returns relative created date. eg. active 5 months ago.
If false, returns created date value from database. Default: true.
}
string
bp_get_group_description(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_description_editable(false|integer|string|\BP_Groups_Group $group = false
) : string
'bp_get_group_description_editable' does not have the formatting filters that 'bp_get_group_description' has, which makes it appropriate for "raw" editing.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_description_excerpt(false|integer|string|\BP_Groups_Group $group= false
, integer $length= 225
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
(Optional) Length of returned string, including ellipsis. Default: 225.
string
bp_get_group_extension_screens(string $context = 'read'
) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The display context. Required. Defaults to read
.
array
The list of registered Group Extension screens.bp_get_group_form_action(string $page, false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
string
Page slug.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_forum_permalink(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_has_avatar(integer|boolean $group_id = false
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 10.0.0 Updated to use `bp_get_group_avatar` |
integer
boolean
Group ID to check.
boolean
bp_get_group_id(false|integer|string|\BP_Groups_Group $group = false
) : integer
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
bp_get_group_invite_item_id() : string
bp_get_group_invite_pagination_count() : string
bp_get_group_invite_pagination_links() : string
bp_get_group_invite_user_avatar() : string | null
bp_get_group_invite_user_last_active() : string | null
bp_get_group_invite_user_link() : string
bp_get_group_invite_user_remove_invite_url() : string
bp_get_group_is_public(object|boolean $group = false
) : mixed
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 6.0.0 Not used anymore. |
object
boolean
Optional. Group object. Default: current group in loop.
mixed
bp_get_group_last_active(false|integer|string|\BP_Groups_Group $group= false
, array|string $args= array()
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added `$args` as a parameter. |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
string
{ Array of optional parameters.
@type bool $relative Optional. If true, returns relative activity date. eg. active 5 months ago.
If false, returns active date value from database. Default: true.
}
string
bp_get_group_leave_confirm_link(object|boolean $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: Current group in the loop.
string
bp_get_group_leave_reject_link(object|boolean $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: Current group in the loop.
string
bp_get_group_link(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 2.9.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_manage_url(false|integer|string|\BP_Groups_Group $group= false
, array $path_chunks= array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
{ An array of arguments. Optional.
@type array $single_item_action_variables An array of additional informations about the action to perform.
}
string
The requested group's manage URL.bp_get_group_member_admin_pagination() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
mixed
bp_get_group_member_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{@see bp_core_fetch_avatar()}.
string
bp_get_group_member_avatar_mini(integer $width= 30
, integer $height= 30
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
Width of avatar to fetch.
integer
Height of avatar to fetch.
string
bp_get_group_member_avatar_thumb(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{@see bp_core_fetch_avatar()}.
string
bp_get_group_member_ban_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
ID of the member to ban. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_member_count(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 7.0.0 Adds the `$group` optional parameter. |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_member_demote_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
ID of the member to demote. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_member_domain() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
bp_get_group_member_id() : integer
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
bp_get_group_member_is_banned() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
boolean
bp_get_group_member_is_friend() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
bp_get_group_member_joined_since(array|string $args = array()
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added $args as a parameter. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{ Array of optional parameters.
@type bool $relative Optional. If true, returns relative joined date. eg. joined 5 months ago.
If false, returns joined date value from database. Default: true.
}
string
bp_get_group_member_link() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
bp_get_group_member_name() : string | null
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
null
bp_get_group_member_pagination() : string | null
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
null
bp_get_group_member_pagination_count() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
bp_get_group_member_promote_admin_link(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{ @type int $user_id ID of the member to promote. Default: current member in a group member loop. @type object $group Group object. Default: current group. }
string
bp_get_group_member_promote_mod_link(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{ @type int $user_id ID of the member to promote. Default: current member in a group member loop. @type object $group Group object. Default: current group. }
string
bp_get_group_member_remove_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
) : string
package | BuddyPress |
---|---|
since | 1.2.6 |
since | 10.0.0 Updated to use `bp_get_group`. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
ID of the member to remove. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_member_unban_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
ID of the member to unban. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_member_url() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
string
bp_get_group_name(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: current group in loop.
string
bp_get_group_permalink(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_public_status(object|boolean $group = false
) : string
Either 'Public' or 'Private'.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 6.0.0 Not used anymore. |
object
boolean
Optional. Group object. Default: current group in loop.
string
bp_get_group_reject_invite_link(object|boolean $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: Current group in the loop.
string
bp_get_group_request_accept_link() : string
bp_get_group_request_reject_link() : string
bp_get_group_request_user_link() : string
bp_get_group_requests_pagination_count() : string
bp_get_group_requests_pagination_links() : string
bp_get_group_restricted_screens() : array
bp_get_group_screens(string $context= 'read'
, boolean $built_in= false
) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The display context. Required. Defaults to read
.
Possible values are read
, manage
or create
.
boolean
True to only get builtin screens. False otherwise.
array
The list of potential Group screens.bp_get_group_send_invite_form_action(object|boolean $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: current group in the loop.
string
bp_get_group_slug(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_status(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_total_for_member() : string
bp_get_group_total_members(false|integer|string|\BP_Groups_Group $group = false
) : integer
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
bp_get_group_type(false|integer|string|\BP_Groups_Group $group = false
) : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
bp_get_group_type_directory_link(string $group_type = ''
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Unique group type identifier as used in bp_groups_register_group_type().
string
bp_get_group_type_directory_permalink(string $group_type = ''
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Optional. Group type. Defaults to current group type.
string
Group type directory URL on success, an empty string on failure.bp_get_group_type_list(integer $group_id= 0
, array|string $r= array()
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
since | 7.0.0 The `$r['label']` argument now also accept an array containing the plural & singular labels to use according to the Group's number of group types it is assigned to. |
integer
Group ID. Defaults to current group ID if on a group page.
array
string
{ Array of parameters. All items are optional. @type string $parent_element Element to wrap around the list. Defaults to 'p'. @type array $parent_attr Element attributes for parent element. Defaults to array( 'class' => 'bp-group-type-list' ). @type string|array $label Plural and singular labels to add before the list. Defaults to array( 'plural' => 'Group Types:', 'singular' => 'Group Type:' ). @type string $label_element Element to wrap around the label. Defaults to 'strong'. @type array $label_attr Element attributes for label element. Defaults to array(). @type bool $show_all Whether to show all registered group types. Defaults to 'false'. If 'false', only shows group types with the 'show_in_list' parameter set to true. See bp_groups_register_group_type() for more info. }
string
bp_get_group_type_tax_args() : array
bp_get_group_type_tax_labels() : array
bp_get_group_type_tax_name() : string
bp_get_group_types_registered_by_code() : array
bp_get_group_url(integer|\BP_Groups_Group $group= 0
, array $path_chunks= array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
integer
\BP_Groups_Group
The group ID or the Group object.
array
{ An array of arguments. Optional.
@type string $single_item_action The slug of the action to perform.
@type array $single_item_action_variables An array of additional informations about the action to perform.
}
string
The URL built for the BP Rewrites URL parser.bp_get_groups_action_link(string $action= ''
, string $query_args= ''
, boolean $nonce= false
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
string
string
boolean
string
bp_get_groups_current_create_step() : string
bp_get_groups_directory_permalink() : string
bp_get_groups_directory_url(array $path_chunks = array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
array
{ An array of arguments. Optional.
@type int $create_single_item `1` to get the create a group URL.
@type array $directory_type The group type slug.
}
string
The URL built for the BP Rewrites URL parser.bp_get_groups_group_type_base() : string
The base slug is the string used as the base prefix when generating group type directory URLs. For example, in example.com/groups/type/foo/, 'foo' is the group type and 'type' is the base slug.
package | BuddyPress |
---|---|
since | 2.7.0 |
string
bp_get_groups_pagination_count() : string
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
string
bp_get_groups_pagination_links() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
string
bp_get_groups_root_slug() : string
bp_get_groups_slug() : string
bp_get_initial_version() : string
bp_get_last_activity(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
ID of the user. Default: displayed user ID.
string
bp_get_loggedin_user_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default: 'Profile picture of [user name]'. @type bool $html Default: true. @type string $type Default: 'thumb'. @type int|bool $width Default: false. @type int|bool $height Default: false. }
string
User avatar string.bp_get_loggedin_user_fullname() : string
bp_get_loggedin_user_link() : string
bp_get_loggedin_user_nav()
Each component adds to this navigation array within its own [component_name]setup_nav() function.
This navigation array is the top level navigation, so it contains items such as: [Blog, Profile, Messages, Groups, Friends] ...
The function will also analyze the current component the user is in, to determine whether or not to highlight a particular nav item.
package | BuddyPress |
---|---|
since | 1.1.0 |
todo | Move to a back-compat file? |
deprecated | Does not seem to be called anywhere in BP core. |
bp_get_loggedin_user_username() : string
bp_get_maintenance_mode() : string
bp_get_major_version(string $version = ''
) : string
package | BuddyPress |
---|---|
since | 11.0.0 |
string
BuddyPress version.
string
The corresponding BuddyPress major version.bp_get_major_wp_version() : float
bp_get_max_thread_recipients_to_list() : integer
bp_get_member_activity_feed_link() : string
bp_get_member_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}. @type string $alt Default: 'Profile picture of [user name]'. @type string $class Default: 'avatar'. @type string $type Default: 'thumb'. @type int|bool $width Default: false. @type int|bool $height Default: false. @type bool $no_grav Default: false. @type bool $id Currently unused. }
string
User avatar string.bp_get_member_class(array $classes = array()
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
Array of custom classes.
string
Row class of the memberbp_get_member_last_active(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.7.0 Added 'relative' as a parameter to $args. |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
{ Array of optional arguments. @type mixed $active_format If true, formatted "active 5 minutes ago". If false, formatted "5 minutes ago". If string, should be sprintf'able like 'last seen %s ago'. @type bool $relative If true, will return relative time "5 minutes ago". If false, will return date from database. Default: true. }
string
bp_get_member_latest_update(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
string
{ Array of optional arguments. @type int $length Truncation length. Default: 225. @type bool $view_link Whether to provide a 'View' link for truncated entries. Default: false. }
string
bp_get_member_name() : string
Full name is, by default, pulled from xprofile's Full Name field. When this field is empty, we try to get an alternative name from the WP users table, in the following order of preference: display_name, user_nicename, user_login.
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
The user's fullname for display.bp_get_member_permalink() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
bp_get_member_profile_data(array|string $args = ''
) : string | boolean
When used in a bp_has_members() loop, this function will attempt to fetch profile data cached in the template global. It is also safe to use outside of the loop.
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
string
{ Array of config parameters. @type string $field Name of the profile field. @type int $user_id ID of the user whose data is being fetched. Defaults to the current member in the loop, or if not present, to the currently displayed user. }
string
boolean
Profile data if found, otherwise false.bp_get_member_registered(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.7.0 Added `$args` as a parameter. |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
{ Array of optional parameters. @type bool $relative Optional. If true, returns relative registered date. eg. registered 5 months ago. If false, returns registered date value from database. }
string
bp_get_member_total_friend_count() : string
Return value is a string of the form "x friends".
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
A string of the form "x friends".bp_get_member_type(integer $user_id, boolean $single= true
, boolean $use_db= true
) : string | array | boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 7.0.0 Adds the `$use_db` parameter. |
integer
ID of the user.
boolean
Optional. Whether to return a single type string. If multiple types are found for the user, the oldest one will be returned. Default: true.
boolean
Optional. Whether to request all member types or only the ones registered by code. Default: true.
string
array
boolean
On success, returns a single member type (if $single is true) or an array of member
types (if $single is false). Returns false on failure.bp_get_member_type_directory_link(string $member_type = ''
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
string
Unique member type identifier as used in bp_register_member_type().
string
bp_get_member_type_directory_permalink(string $member_type = ''
) : string
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Optional. Member type. Defaults to current member type.
string
Member type directory URL on success, an empty string on failure.bp_get_member_type_list(integer $user_id= 0
, array|string $r= array()
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
integer
User ID. Defaults to displayed user ID if on a member page.
array
string
{ Array of parameters. All items are optional. @type string $parent_element Element to wrap around the list. Defaults to 'p'. @type array $parent_attr Element attributes for parent element. Defaults to array( 'class' => 'bp-member-type-list' ). @type array $label Plural and singular labels to use before the list. Defaults to array( 'plural' => 'Member Types:', 'singular' => 'Member Type:' ). @type string $label_element Element to wrap around the label. Defaults to 'strong'. @type array $label_attr Element attributes for label element. Defaults to array(). @type bool $show_all Whether to show all registered group types. Defaults to 'false'. If 'false', only shows member types with the 'show_in_list' parameter set to true. See bp_register_member_type() for more info. @type string $list_element Element to wrap around the comma separated list of membet types. Defaults to ''. @type string $list_element_attr Element attributes for list element. Defaults to array(). }
string
bp_get_member_type_object(string $member_type) : object | null
package | BuddyPress |
---|---|
since | 2.2.0 |
string
The name of the member type.
object
null
A member type object or null if it doesn't exist.bp_get_member_type_tax_args() : array
bp_get_member_type_tax_labels() : array
bp_get_member_type_tax_name() : string
bp_get_member_types(array|string $args= array()
, string $output= 'names'
, string $operator= 'and'
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
see | for accepted arguments. |
array
string
Optional. An array of key => value arguments to match against the member type objects. Default empty array.
string
Optional. The type of output to return. Accepts 'names' or 'objects'. Default 'names'.
string
Optional. The logical operation to perform. 'or' means only one element from the array needs to match; 'and' means all elements must match. Accepts 'or' or 'and'. Default 'and'.
array
A list of member type names or objects.bp_get_member_types_registered_by_code() : array
bp_get_member_user_email() : string
package | BuddyPress |
---|---|
since | 1.2.5 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
Member's email address.bp_get_member_user_id() : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
integer
Member ID.bp_get_member_user_login() : string
package | BuddyPress |
---|---|
since | 1.2.5 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
Member's login.bp_get_member_user_nicename() : string
package | BuddyPress |
---|---|
since | 1.2.5 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
Members nicename.bp_get_members_component_link(string $component, string $action= ''
, array|string $query_args= ''
, array|boolean $nonce= false
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
ID of the component (eg 'friends').
string
Optional. 'action' slug (eg 'invites').
array
string
Optional. Array of URL params to add to the URL. See {@link add_query_arg()} for format.
array
boolean
Optional. If provided, the URL will be passed through wp_nonce_url() with $nonce as the action string.
string
bp_get_members_directory_permalink() : string
bp_get_members_invitation_from_request() : \BP_Invitation
package | BuddyPress |
---|---|
since | 8.0.0 |
\BP_Invitation
$invite Invitation specified by the $_GET parameters.bp_get_members_invitations_allowed() : boolean
bp_get_members_invitations_list_invites_permalink($user_id = 0
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
string
Members invitations list permalink for a user.bp_get_members_invitations_pagination_count() : string
bp_get_members_invitations_pagination_links() : string
bp_get_members_invitations_send_invites_permalink(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
The user ID.
string
The send invitations permalink.bp_get_members_invitations_slug() : string
bp_get_members_member_type_base() : string
The base slug is the string used as the base prefix when generating member type directory URLs. For example, in example.com/members/type/foo/, 'foo' is the member type and 'type' is the base slug.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
bp_get_members_pagination_count() : string
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
bp_get_members_pagination_links() : string
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
string
bp_get_members_root_slug() : string
bp_get_members_slug() : string
bp_get_membership_requests_required(boolean $context = 'site'
) : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
"raw" to fetch value from database, "site" to take "anyone can register" setting into account.
boolean
bp_get_mentioned_user_display_name(integer|string|boolean $user_id_or_username = false
) : string
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
string
boolean
User ID or username.
string
The mentioned user's display name.bp_get_moderator_role()
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 1.7.0 |
bp_get_name_from_root_slug(string $root_slug = ''
) : mixed
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Needle to our active component haystack.
mixed
False if none found, component name if found.bp_get_new_group_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
see | For a description of arguments and return values. |
array
string
{ Arguments are listed here with an explanation of their defaults. For more information about the arguments, see {@link bp_core_fetch_avatar()}.
@type string $alt Default: 'Group photo'.
@type string $class Default: 'avatar'.
@type string $type Default: 'full'.
@type int|bool $width Default: false.
@type int|bool $height Default: false.
@type string $id Passed to $css_id parameter. Default: 'avatar-crop-preview'.
}
string
The avatar for the group being createdbp_get_new_group_description() : string
bp_get_new_group_enable_forum() : integer
package | BuddyPress |
---|---|
todo | deprecate |
since | 1.1.0 |
integer
1 if the new group has a forum. O otherwise.bp_get_new_group_id() : integer
bp_get_new_group_invite_friend_list(array $args = array()
) : false | string
package | BuddyPress |
---|---|
since | 1.0.0 |
array
Array of arguments for friends list output.
false
string
HTML list of checkboxes, or falsebp_get_new_group_name() : string
bp_get_new_group_status() : string
bp_get_non_cached_ids(array $item_ids, string $cache_group) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
array
ID list.
string
The cache group to check against.
array
bp_get_notifications_pagination_count() : string
bp_get_notifications_pagination_links() : string
bp_get_notifications_permalink(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
Notifications permalink.bp_get_notifications_read_permalink($user_id = 0
) : string
bp_get_notifications_slug() : string
bp_get_notifications_unread_permalink(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
Unread notifications permalink.bp_get_object_terms(integer|array $object_ids, string|array $taxonomies, array $args = array()
) : array<mixed,\WP_Term> | array<mixed,integer> | array<mixed,string>
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 15.0.0 Added a `_doing_it_wrong` check to prevent errors when using the function too early. |
see | for a full description of function and parameters |
integer
array
ID or IDs of objects.
string
array
Name or names of taxonomies to match.
array
See {@see wp_get_object_terms()}.
array<mixed,\WP_Term>
array<mixed,integer>
array<mixed,string>
bp_get_objects_in_term(integer|array $term_ids, string|array $taxonomies, array|string $args = array()
) : \WP_Error | array
Note that object IDs are from the bp_get_taxonomy_term_site_id()
, which on some
multisite configurations may not be the same as the current site.
package | BuddyPress |
---|---|
since | 2.7.0 |
see | for a full description of function and parameters. |
integer
array
Term id or array of term ids of terms that will be used.
string
array
String of taxonomy name or Array of string values of taxonomy names.
array
string
Change the order of the object_ids, either ASC or DESC.
\WP_Error
array
If the taxonomy does not exist, then WP_Error will be returned. On success,
the array can be empty, meaning that there are no $object_ids found. When
object IDs are found, an array of those IDs will be returned.bp_get_option(string $option_name, string $default_value = ''
) : mixed
This is a wrapper for get_blog_option(), which in turn stores settings data (such as bp-pages) on the appropriate blog, given your current setup.
The 'bp_get_option' filter is primarily for backward-compatibility.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The option to be retrieved.
string
Optional. Default value to be returned if the option isn't set. See {@link get_blog_option()}.
mixed
The value for the option.bp_get_optouts(array $args = array()
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
see | for a description of parameters and return values. |
array
See {@link BP_Optout::get()}.
array
See {@link BP_Optout::get()}.bp_get_page_title() : string
Now, just simply use wp_title().
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Use wp_title() |
since | 1.0.0 |
string
bp_get_participant_role()
This is primarily for multisite compatibility when users without roles on sites that have global communities enabled.
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 1.7.0 |
bp_get_post_type_link(string $link= ''
, \WP_Post|null $post= null
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The post type link.
\WP_Post
null
The post type object.
string
The post type link.bp_get_post_type_site_id() : integer
package | BuddyPress |
---|---|
since | 12.0.0 |
integer
The site ID the BuddyPress Post Type should be registered on.bp_get_potential_friend_id(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.6 |
global | object $friends_template |
integer
Optional. If provided, the function will simply return this value.
integer
ID of potential friend.bp_get_profile_field_data(string|array $args = ''
) : mixed
package | BuddyPress |
---|---|
since | 1.2.0 |
string
array
{ Array of arguments for field data.
@type string|int|bool $field Field identifier. @type int $user_id ID of the user to get field data for. }
mixed
bp_get_profile_group_name() : string
bp_get_profile_group_tabs() : string
bp_get_profile_last_updated() : boolean | string
bp_get_profile_slug() : string
bp_get_query_template(string $type, array $templates = array()
) : string
Used to quickly retrieve the path of a template without including the file extension. It will also check the parent theme and theme-compat theme with the use of bp_locate_template(). Allows for more generic template locations without the use of the other get_*_template() functions.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Filename without extension.
array
An optional list of template candidates.
string
Full path to file.bp_get_referer_path() : boolean | string
This is a wrapper for wp_get_referer()
that sanitizes the referer URL to
a webroot-relative path. For example, 'http://example.com/foo/' will be
reduced to '/foo/'.
package | BuddyPress |
---|---|
since | 2.3.0 |
boolean
string
Returns false on error, a URL path on success.bp_get_request()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_get_requested_url() : string
bp_get_root_blog_id() : integer
The "root blog" is the blog on a WordPress network where BuddyPress content appears (where member profile URLs resolve, where a given theme is loaded, etc.).
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
The root site ID.bp_get_root_domain() : string
bp_get_root_slug(string $component = ''
) : string
The "root slug" is the string used when concatenating component directory URLs. For example, on an installation where the Groups component's directory is located at http://example.com/groups/, the root slug for the Groups component is 'groups'. This string generally corresponds to page_name of the component's directory page.
In order to maintain backward compatibility, the following procedure is used: 1) Use the short slug to get the canonical component name from the active component array. 2) Use the component name to get the root slug out of the appropriate part of the $bp global. 3) If nothing turns up, it probably means that $component is itself a root slug.
Example: If your groups directory is at /community/companies, this function first uses the short slug 'companies' (ie the current component) to look up the canonical name 'groups' in $bp->active_components. Then it uses 'groups' to get the root slug, from $bp->groups->root_slug.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Optional. Defaults to the current component.
string
$root_slug The root slug.bp_get_root_url() : string
bp_get_search_default_text(string $component = ''
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Component name. Default: current component.
string
Placeholder text for search field.bp_get_search_input_name(string $component = ''
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Component name. Defaults to current component.
string
Text for the 'name' attribute.bp_get_search_placeholder(string $component = ''
) : string
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Component name. Defaults to current component.
string
Placeholder text for the search field.bp_get_search_slug() : string
bp_get_settings_root_slug() : string
bp_get_settings_slug() : string
bp_get_signup_allowed() : boolean
bp_get_signup_avatar(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for description of arguments. |
array
string
{ Array of optional arguments. @type int $size Height/weight in pixels. Default: value of bp_core_avatar_full_width(). @type string $class CSS class. Default: 'avatar'. @type string $alt HTML 'alt' attribute. Default: 'Your Avatar'. }
string
bp_get_signup_avatar_dir_value() : string
bp_get_signup_blog_privacy_value() : string
bp_get_signup_blog_title_value() : string
bp_get_signup_blog_url_value() : string
bp_get_signup_email_value() : string
bp_get_signup_page() : string
bp_get_signup_root_slug() : string
This function is used to set the BP Signup rewrite rule and permastruct.
package | BuddyPress |
---|---|
since | 15.0.0 |
string
The registration page root slug.bp_get_signup_slug() : string
bp_get_signup_username_value() : string
bp_get_signup_with_blog_value() : string
bp_get_site_name() : string
bp_get_sitewide_activity_feed_link() : string
bp_get_taxonomy_common_args() : array
bp_get_taxonomy_common_labels() : array
bp_get_taxonomy_term_site_id(string $taxonomy = ''
) : integer
Defaults to the root blog ID.
package | BuddyPress |
---|---|
since | 2.6.0 |
string
Taxonomy slug to check for.
integer
bp_get_taxonomy_types(string $taxonomy= ''
, array $types= array()
) : array
package | BuddyPress |
---|---|
since | 7.0.0 |
string
The taxonomy to transform terms in types for.
array
Existing types to merge with the types found into the database. For instance this function is used internally to merge Group/Member types registered using code with the ones created by the administrator from the Group/Member types Administration screen. If not provided, only Types created by the administrator will be returned. Optional.
array
The types of the given taxonomy.bp_get_template_locations(array $templates = array()
) : array
package | BuddyPress |
---|---|
since | 1.7.0 |
array
Templates we are looking for.
array
Possible subfolders to look in.bp_get_template_part(string $slug, string|null $name= null
, array $args= array()
) : false | string
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 7.0.0 Added `$args` parameter. |
string
Template part slug. Used to generate filenames, eg 'friends' for 'friends.php'.
string
null
Optional. Template part name. Used to generate secondary filenames, eg 'personal' for 'activity-personal.php'.
array
Optional. Extra args to pass to locate_template().
false
string
Path to located template. See {@link bp_locate_template()}.bp_get_template_stack() : array
Calls the functions added to the 'bp_template_stack' filter hook, and return an array of the template locations.
package | BuddyPress |
---|---|
since | 1.7.0 |
see | |
global | array $wp_filter Stores all of the filters. |
global | array $merged_filters Merges the filter hooks using this function. |
global | array $wp_current_filter Stores the list of current filters with the current one last. |
array
The filtered value after all hooked functions are applied to it.bp_get_term_by(string $field, string|integer $value, string $taxonomy= ''
, string $output= OBJECT
, string $filter= 'raw'
) : \WP_Term | boolean
Note that term data is from the bp_get_taxonomy_term_site_id()
, which on some
multisite configurations may not be the same as the current site.
package | BuddyPress |
---|---|
since | 2.7.0 |
see | for a full description of function and parameters. |
string
Either 'slug', 'name', 'id' (term_id), or 'term_taxonomy_id'.
string
integer
Search for this term value.
string
Taxonomy name. Optional, if $field
is 'term_taxonomy_id'.
string
Constant OBJECT, ARRAY_A, or ARRAY_N.
string
Optional, default is raw or no WordPress defined filter will applied.
\WP_Term
boolean
WP_Term instance on success. Will return false if `$taxonomy` does not exist
or `$term` was not found.bp_get_terms(array $args = array()
) : array
package | BuddyPress |
---|---|
since | 7.0.0 |
array
{
Array of arguments to query BP Terms.
@see get_terms()
for full description of arguments in case of a member type.
}
array
The list of terms matching arguments.bp_get_the_body_class(array $wp_classes= array()
, array|boolean $custom_classes= false
) : array
Uses the above is_() functions to output a body class for each scenario.
package | BuddyPress |
---|---|
since | 1.1.0 |
array
The body classes coming from WP.
array
boolean
Classes that were passed to get_body_class().
array
$classes The BP-adjusted body classes.bp_get_the_members_invitation_action_links(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
array
string
{ @type string $before HTML before the links. @type string $after HTML after the links. @type string $sep HTML between the links. @type array $links Array of links to implode by 'sep'. @type int $user_id User ID to fetch action links for. Defaults to displayed user ID. }
string
HTML links for actions to take on single notifications.bp_get_the_members_invitation_delete_link(integer $user_id = 0
) : string
bp_get_the_members_invitation_property($property = 'id'
) : integer
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
ID of the current network invitation.bp_get_the_members_invitation_resend_link(integer $user_id = 0
) : string
bp_get_the_members_invitations_delete_url(integer $user_id = 0
) : string
bp_get_the_members_invitations_resend_url(integer $user_id = 0
) : string
bp_get_the_notification_action_links(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter to $args. |
array
string
{ @type string $before HTML before the links. @type string $after HTML after the links. @type string $sep HTML between the links. @type array $links Array of links to implode by 'sep'. @type int $user_id User ID to fetch action links for. Defaults to displayed user ID. }
string
HTML links for actions to take on single notifications.bp_get_the_notification_component_action() : string
package | BuddyPress |
---|---|
since | 1.9.0 |
string
Name of the action associated with the current notification.bp_get_the_notification_component_name() : integer
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
Name of the component associated with the current notification.bp_get_the_notification_date_notified() : string
bp_get_the_notification_delete_link(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_delete_url(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_description() : string
bp_get_the_notification_id() : integer
bp_get_the_notification_item_id() : integer
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the item associated with the current notification.bp_get_the_notification_mark_link(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_mark_read_link(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_mark_read_url(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_mark_unread_link(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_mark_unread_url(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
string
bp_get_the_notification_secondary_item_id() : integer
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the secondary item associated with the current notification.bp_get_the_notification_time_since() : string
bp_get_the_post_class(array $wp_classes = array()
) : array
Hooked to the 'post_class' filter.
package | BuddyPress |
---|---|
since | 2.1.0 |
array
The post classes coming from WordPress.
array
bp_get_the_profile_field_description() : string
bp_get_the_profile_field_edit_value() : string
bp_get_the_profile_field_errors_action() : string
In the registration templates, signup errors are pulled from the global object and rendered at actions that look like 'bp_field_12_errors'. This function allows the action name to be easily concatenated and called in the following fashion: do_action( bp_get_the_profile_field_errors_action() );
package | BuddyPress |
---|---|
since | 1.8.0 |
global | object $field Current profile field. |
string
The _errors action name corresponding to this profile field.bp_get_the_profile_field_id() : integer
bp_get_the_profile_field_ids() : string
package | BuddyPress |
---|---|
since | 2.1.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
string
bp_get_the_profile_field_input_name() : string
bp_get_the_profile_field_is_required() : boolean
bp_get_the_profile_field_name() : string
bp_get_the_profile_field_required_label() : string
bp_get_the_profile_field_type() : string
bp_get_the_profile_field_value() : string
bp_get_the_profile_field_visibility_level() : string
bp_get_the_profile_field_visibility_level_label() : string
bp_get_the_profile_group_description() : string
bp_get_the_profile_group_edit_form_action() : string
bp_get_the_profile_group_field_ids() : string
bp_get_the_profile_group_id() : integer
package | BuddyPress |
---|---|
since | 1.1.0 |
global | object $group Current group of profile fields. |
integer
bp_get_the_profile_group_name() : string
bp_get_the_profile_group_slug() : string
bp_get_the_profile_signup_field_input_name(string $field_selector = ''
) : string
package | BuddyPress |
---|---|
see | |
since | 8.0.0 |
string
The text to use as the input name/id attribute.
string
The text to use as the input name/id attribute.bp_get_the_thread_delete_link() : string
bp_get_the_thread_exit_link() : string
bp_get_the_thread_id() : integer
package | BuddyPress |
---|---|
global | BP_Messages_Thread_Template $thread_template Message Thread Template Class. |
integer
bp_get_the_thread_recipients() : string
In BuddyPress 2.2.0, this parts of this functionality were moved into the members/single/messages/single.php template. This function is no longer used by BuddyPress.
package | BuddyPress |
---|
string
bp_get_the_thread_subject() : string
package | BuddyPress |
---|---|
global | BP_Messages_Thread_Template $thread_template Message Thread Template Class. |
string
bp_get_theme_compat_dir() : string
Or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The absolute path of the theme package currently in use.bp_get_theme_compat_feature(string $feature = ''
) : false | object
package | BuddyPress |
---|---|
since | 2.4.0 |
string
The feature (eg: cover_image).
false
object
The feature settings or false if the feature is not found.bp_get_theme_compat_id() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
ID of the theme package in use.bp_get_theme_compat_name() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Name of the theme package currently in use.bp_get_theme_compat_templates() : string
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 2.4.0 Added singular.php to stack |
string
Possible root level wrapper template files.bp_get_theme_compat_url() : string
This can be filtered, or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
URL of the theme package currently in use.bp_get_theme_compat_version() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The version string of the theme package currently in use.bp_get_theme_package_id(string $package_id = 'legacy'
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Optional. Fallback value if not found in the database. Default: 'legacy'.
string
ID of the theme package.bp_get_thread_recipients_count() : integer
package | BuddyPress |
---|---|
since | 2.2.0 |
global | BP_Messages_Thread_Template $thread_template Message Thread Template Class. |
integer
bp_get_thread_recipients_list() : string
package | BuddyPress |
---|---|
since | 2.2.0 |
global | BP_Messages_Thread_Template $thread_template Message Thread Template Class. |
string
bp_get_title_parts(string $seplocation = 'right'
) : array
package | BuddyPress |
---|---|
since | 2.4.3 |
string
Location for the separator.
array
the title partsbp_get_total_blog_count() : integer
bp_get_total_blog_count_for_user(integer $user_id = 0
) : integer
package | BuddyPress |
---|
integer
ID of the user.
integer
Total number of blogs for the user.bp_get_total_favorite_count_for_user(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of user being queried. Default: displayed user ID.
integer
The total favorite count for the specified user.bp_get_total_friend_count(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
See {@link friends_get_total_friend_count()}.
integer
Total friend count.bp_get_total_group_count() : integer
bp_get_total_group_count_for_user(integer $user_id = 0
) : string
Filtered by bp_core_number_format()
by default
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
User ID to get group membership count.
string
bp_get_total_member_count() : integer
Since BuddyPress 1.6, this function has used bp_core_get_active_member_count(), which counts non-spam, non-deleted users who have last_activity. This value will correctly match the total member count number used for pagination on member directories.
Before BuddyPress 1.6, this function used bp_core_get_total_member_count(), which did not take into account last_activity, and thus often resulted in higher counts than shown by member directory pagination.
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
Member count.bp_get_total_mention_count_for_user(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
ID of user being queried. Default: displayed user ID.
integer
The total mention count for the specified user.bp_get_total_site_member_count() : string
bp_get_user_firstname(string|boolean $name = false
) : string
Simply takes all the characters before the first space in a name.
package | BuddyPress |
---|---|
since | 1.2.0 |
string
boolean
Full name to use when generating first name. Defaults to displayed user's first name, or to logged-in user's first name if it's unavailable.
string
bp_get_user_groups(integer $user_id, array $args = array()
) : array
Get a list of the groups to which this member belongs, filtered by group membership status and role. Usage examples: Used with no arguments specified,
bp_get_user_groups( bp_loggedin_user_id() );
returns an array of the groups in which the logged-in user is an unpromoted member. To fetch an array of all groups that the current user belongs to, in any membership role, member, moderator or administrator, use
bp_get_user_groups( $user_id, array( 'is_admin' => null, 'is_mod' => null, ) );
package | BuddyPress |
---|---|
since | 2.6.0 |
integer
ID of the user.
array
{
Array of optional args.
@param bool|null $is_confirmed Whether to return only confirmed memberships. Pass null
to disable this
filter. Default: true.
@param bool|null $is_banned Whether to return only banned memberships. Pass null
to disable this filter.
Default: false.
@param bool|null $is_admin Whether to return only admin memberships. Pass null
to disable this filter.
Default: false.
@param bool|null $is_mod Whether to return only mod memberships. Pass null
to disable this filter.
Default: false.
@param bool|null $invite_sent Whether to return only memberships with 'invite_sent'. Pass null
to disable
this filter. Default: false.
@param string $orderby Field to order by. Accepts 'id' (membership ID), 'group_id', 'date_modified'.
Default: 'group_id'.
@param string $order Sort order. Accepts 'ASC' or 'DESC'. Default: 'ASC'.
}
array
Array of matching group memberships, keyed by group ID.bp_get_user_has_avatar(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
ID of the user whose avatar is being checked.
boolean
True if the user has uploaded a local avatar. Otherwise false.bp_get_user_last_activity(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
The ID of the user.
string
Time of last activity, in 'Y-m-d H:i:s' format, or an empty
string if none is found.bp_get_version() : string
bp_group_accept_invite_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_activity_feed_link()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_group_admin_form_action(false|string|boolean $page= false
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
false
string
boolean
(Optional). Page slug. Default: false.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_admin_ids(false|integer|string|\BP_Groups_Group $group= false
, string $format= 'string'
) : string | array | false
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
(Optional) 'string' to get a comma-separated string, 'array' to get an array.
string
array
false
A string or an array of user IDs, false if group does not exist.bp_group_admin_memberlist(boolean $admin_list= false
, boolean $group= false
)
As of BuddyPress 1.5 (r4489), and because this function outputs HTML, it was moved into /bp-default/groups/single/admin.php.
package | BuddyPress |
---|---|
deprecated | 1.5 |
deprecated | No longer used. |
since | 1.0.0 |
todo | Remove in 1.4 |
boolean
boolean
bp_group_admin_permalink(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_admin_tabs(object|boolean $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
object
boolean
Optional. Group object. Default: current group in the loop.
bp_group_admin_tabs_backcompat(string $subnav_output= ''
, string $subnav_item= ''
, string $selected_item= ''
) : string
package | BuddyPress |
---|---|
since | 2.2.0 |
string
Subnav item output.
string
subnav item params.
string
Surrent selected tab.
string
HTML outputbp_group_all_members_permalink(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_avatar(array|string $args= ''
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
array
string
{ See {@link bp_get_group_avatar()} for description of arguments. }
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_avatar_delete_link()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_avatar_mini(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_avatar_thumb(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_avatar_url(false|integer|string|\BP_Groups_Group $group= false
, string $type= 'full'
)
package | BuddyPress |
---|---|
since | 10.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
Optional. The type of the avatar ('full' or 'thumb'). Default 'full'.
bp_group_backcompat_create_nav_item() : string | null
bp_group_class(array $classes = array()
)
bp_group_creation_form_action()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_creation_previous_link()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_creation_stage_title()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_creator_avatar(false|integer|string|\BP_Groups_Group $group= false
, array $args= array()
)
package | BuddyPress |
---|---|
since | 1.7.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
{ Array of optional arguments. See {@link bp_get_group_creator_avatar()} for description. }
bp_group_creator_id(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.7.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_creator_permalink(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.7.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_creator_username(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.7.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_current_admin_tab()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_group_current_avatar(string $type = 'thumb'
)
bp_group_date_created(false|integer|string|\BP_Groups_Group $group= false
, array|string $args= array()
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added `$args` as a parameter. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
string
{@see bp_get_group_date_created()}.
bp_group_description(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_description_editable(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_description_excerpt(false|integer|string|\BP_Groups_Group $group= false
, integer $length= 225
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default:false.
integer
(Optional) Length of returned string, including ellipsis. Default: 225.
bp_group_form_action(string $page, false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
string
Page slug.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_forum_permalink(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Adds the `$group` optional parameter. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_get_invite_status(false|integer|string|\BP_Groups_Group $group = false
) : boolean | string
'invite_status' became part of BuddyPress in BP 1.5. In order to provide backward compatibility with earlier installations, groups without a status set will default to 'members', ie all members in a group can send invitations. Filter 'bp_group_invite_status_fallback' to change this fallback behavior.
This function can be used either in or out of the loop.
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
boolean
string
Returns false when no group can be found. Otherwise
returns the group invite status, from among 'members',
'mods', and 'admins'.bp_group_has_invites(string|array $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
array
{ @type int $group_id ID of the group. Defaults to current group. @type int $user_id ID of the user. Defaults to logged-in user. @type int $per_page Number of records to return per page. Default: 10. @type int $page Page of results to return. Default: 1. }
boolean
bp_group_has_members(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
array
string
{ An array of optional arguments. @type int $group_id ID of the group whose members are being queried. Default: current group ID. @type int $page Page of results to be queried. Default: 1. @type int $per_page Number of items to return per page of results. Default: 20. @type int $max Optional. Max number of items to return. @type array $exclude Optional. Array of user IDs to exclude. @type bool|int $exclude_admin_mods True (or 1) to exclude admins and mods from results. Default: 1. @type bool|int $exclude_banned True (or 1) to exclude banned users from results. Default: 1. @type array $group_role Optional. Array of group roles to include. @type string $type Optional. Sort order of results. 'last_joined', 'first_joined', or any of the $type params available in {@link BP_User_Query}. Default: 'last_joined'. @type string $search_terms Optional. Search terms to match. Pass an empty string to force-disable search, even in the presence of $_REQUEST['s']. Default: false. }
boolean
bp_group_has_membership_requests(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
array
string
{ @type int $group_id ID of the group. Defaults to current group. @type int $per_page Number of records to return per page. Default: 10. @type int $page Page of results to return. Default: 1. @type int $max Max number of items to return. Default: false. }
boolean
True if there are requests, otherwise false.bp_group_has_moderators(false|integer|string|\BP_Groups_Group $group = false
) : array
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
Info about group admins (user_id + date_modified).bp_group_has_requested_membership(false|integer|string|\BP_Groups_Group $group = false
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
boolean
bp_group_hidden_fields()
This function is no longer used, but may still be used by older themes.
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_id(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_invite_pagination_count()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_group_invite_pagination_links()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_group_invite_user_last_active()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_invite_user_remove_invite_url()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_is_activity_permalink() : boolean
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
boolean
True if this is a group activity permalink, otherwise false.bp_group_is_admin() : boolean
bp_group_is_forum_enabled(false|integer|string|\BP_Groups_Group $group = false
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
boolean
bp_group_is_invited(object|boolean $group = false
) : boolean
package | BuddyPress |
---|---|
since | 2.1.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
object
boolean
Optional. Group data object. Default: the current group in the groups loop.
boolean
True if the user has an outstanding invite, otherwise false.bp_group_is_member(object|boolean $group = false
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group to check is_member. Default: current group in the loop.
boolean
If user is member of group or not.bp_group_is_mod() : boolean
bp_group_is_public(object|boolean $group = false
)
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 6.0.0 Not used anymore. |
object
boolean
Optional. Group object. Default: current group in loop.
bp_group_is_user_banned(\BP_Groups_Group|boolean $group= false
, integer $user_id= 0
) : boolean
If this function is invoked inside the groups template loop, then we check $groups_template->group->is_banned instead of using groups_is_user_banned() and making another SQL query.
In BuddyPress 2.1, to standardize this function, we are defaulting the return value to a boolean. In previous versions, using this function would return either a string of the integer (0 or 1) or null if a result couldn't be found from the database. If the logged-in user had the 'bp_moderate' capability, the return value would be boolean false.
package | BuddyPress |
---|---|
since | 1.5.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
\BP_Groups_Group
boolean
Group to check if user is banned.
integer
The user ID to check.
boolean
True if user is banned. False if user isn't banned.bp_group_is_visible(false|integer|string|\BP_Groups_Group $group= false
, integer $user_id= 0
) : boolean
In BP 2.9, a property was added to the BP_Groups_Group class,
is_visible
, that describes whether a user can know the group exists.
If you wish to check that property, use the check:
bp_current_user_can( 'groups_see_group' ).
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group` and added the `$user_id` parameter. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
ID of the User. Default: current logged in user ID.
boolean
True if the Group is accessible to the user. False otherwise.bp_group_last_active(false|integer|string|\BP_Groups_Group $group= false
, array|string $args= array()
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added `$args` as a parameter. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
string
Optional. {@see bp_get_group_last_active()}.
bp_group_leave_confirm_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_leave_reject_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_link(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 2.9.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_list_admins(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_list_mods(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_manage_url(false|integer|string|\BP_Groups_Group $group= false
, array $chunks= array()
)
package | BuddyPress |
---|---|
since | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
array
(Optional) A list of slugs to append to the URL.
bp_group_member_admin_pagination()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_member_avatar(array|string $args = ''
)
bp_group_member_avatar_mini(integer $width= 30
, integer $height= 30
)
package | BuddyPress |
---|---|
since | 1.0.0 |
integer
Width of avatar to fetch.
integer
Height of avatar to fetch.
bp_group_member_avatar_thumb(array|string $args = ''
)
bp_group_member_ban_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
integer
ID of the member. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_member_count(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 7.0.0 Adds the `$group` optional parameter. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_member_css_class()
package | BuddyPress |
---|---|
since | 1.2.6 |
since | 10.0.0 Updated to use `bp_get_group_member_is_banned`. |
bp_group_member_demote_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
integer
ID of the member to demote. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_member_is_banned()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_member_is_friend()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_group_member_joined_since(array|string $args = array()
) : string | null
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.7.0 Added $args as a parameter. |
array
string
{@see bp_get_group_member_joined_since()}
string
null
bp_group_member_needs_pagination() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
boolean
bp_group_member_pagination()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_member_pagination_count()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_member_promote_admin_link(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
array
string
See {@link bp_get_group_member_promote_admin_link()}.
bp_group_member_promote_mod_link(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
array
string
See {@link bp_get_group_member_promote_mod_link()}.
bp_group_member_remove_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.2.6 |
since | 10.0.0 Added the `$group` parameter. |
integer
ID of the member to remove. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_member_unban_link(integer $user_id= 0
, false|integer|string|\BP_Groups_Group $group= false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Added the `$group` parameter. |
integer
ID of the member to unban. Default: 0.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_members() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
mixed
bp_group_membership_requests() : mixed
bp_group_mod_ids(false|integer|string|\BP_Groups_Group $group= false
, string $format= 'string'
) : string | array | false
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
string
(Optional) 'string' to get a comma-separated string, 'array' to get an array.
string
array
false
A string or an array of user IDs, false if group does not exist.bp_group_mod_memberlist(boolean $admin_list= false
, boolean $group= false
)
bp_group_name(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_permalink(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_public_status(object|boolean $group = false
)
Either 'Public' or 'Private'.
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 6.0.0 Not used anymore. |
object
boolean
Optional. Group object. Default: current group in loop.
bp_group_reject_invite_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_accept_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_comment()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_reject_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_time_since_requested()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_user_avatar_thumb()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_request_user_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_requests_pagination_count()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_group_requests_pagination_links()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_group_search_form()
No longer used in BuddyPress.
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_group_send_invite_form_action()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_group_show_forum_setting(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_group_is_forum_enabled`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_show_invite_status_setting(string $setting, false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The setting you want to check against ('members', 'mods', or 'admins').
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_show_status_setting(string $setting, false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
string
Group status: 'public', 'private', 'hidden'.
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_site_admin_network_admin_redirect()
package | BuddyPress |
---|---|
since | 7.0.0 |
bp_group_slug(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_status(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.1.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_the_member() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
mixed
bp_group_the_membership_request() : mixed
bp_group_total_for_member()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_group_total_members(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_type(false|integer|string|\BP_Groups_Group $group = false
)
package | BuddyPress |
---|---|
since | 1.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_type_directory_link(string $group_type = ''
)
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Unique group type identifier as used in bp_groups_register_group_type().
bp_group_type_directory_permalink(string $group_type = ''
)
bp_group_type_list(integer $group_id= 0
, array $r= array()
)
package | BuddyPress |
---|---|
since | 2.7.0 |
see | for parameter documentation. |
integer
The group ID.
array
List parameters.
bp_group_url(false|integer|string|\BP_Groups_Group $group= false
, $chunks= array()
)
package | BuddyPress |
---|---|
since | 12.0.0 |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
bp_group_use_cover_image_header() : boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
True if the cover image header is enabled, false otherwise.bp_groups() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
boolean
bp_groups_accept_invite_mark_notifications(integer $user_id, integer $group_id)
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user.
integer
ID of the group.
bp_groups_accept_request_mark_notifications(integer $user_id, integer $group_id)
package | BuddyPress |
---|---|
since | 2.8.0 |
integer
ID of the user.
integer
ID of the group.
bp_groups_action_link(string $action= ''
, string $query_args= ''
, boolean $nonce= false
) : string | null
package | BuddyPress |
---|---|
since | 1.2.0 |
string
string
boolean
string
null
bp_groups_admin()
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_groups_admin_autocomplete_handler()
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_groups_admin_create_pagination_links(\BP_Group_Member_Query $query, string $member_type) : string
This function is intended to create pagination links for use under the Manage Members section of the Groups Admin Dashboard pages. It is a stopgap measure until a more general pagination solution is in place for BuddyPress. Plugin authors should not use this function, as it is likely to be deprecated soon.
package | BuddyPress |
---|---|
since | 1.8.0 |
\BP_Group_Member_Query
A BP_Group_Member_Query object.
string
member|mod|admin|banned.
string
Pagination links HTML.bp_groups_admin_delete()
We include a separate confirmation because group deletion is truly irreversible.
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_groups_admin_get_usernames_from_ids(array $user_ids = array()
) : array
package | BuddyPress |
---|---|
since | 1.7.0 |
array
Array of user IDs.
array
Array of user_logins corresponding to $user_ids.bp_groups_admin_groups_type_change_notice()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_groups_admin_index()
This screen contains a list of all BuddyPress groups.
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Groups_List_Table $bp_groups_list_table Group screen list table. |
global | string $plugin_page Currently viewed plugin page. |
bp_groups_admin_load()
Loaded before the page is rendered, this function does all initial setup, including: processing form requests, registering contextual help, and setting up screen options.
package | BuddyPress |
---|---|
since | 1.7.0 |
global | BP_Groups_List_Table $bp_groups_list_table Groups screen list table. |
bp_groups_admin_process_group_type_bulk_changes(string $doaction)
package | BuddyPress |
---|---|
since | 2.7.0 |
string
Current $_GET action being performed in admin screen.
bp_groups_auto_join() : boolean
"Auto-join" is the toggle that determines whether users are joined to a public group automatically when creating content in that group.
package | BuddyPress |
---|---|
since | 1.2.6 |
boolean
bp_groups_blocks_add_script_data()
Only used for the BP Dynamic Groups block.
package | BuddyPress |
---|---|
since | 9.0.0 |
bp_groups_clear_group_administrator_cache_on_member_delete(integer $user_id, integer $group_id)
bp_groups_clear_group_creator_cache(integer $group_id, \BP_Groups_Group $group_obj)
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
ID of the group.
\BP_Groups_Group
Group object.
bp_groups_clear_group_members_caches(\BP_Groups_Group $group_obj, array $user_ids)
package | BuddyPress |
---|---|
since | 1.6.0 |
\BP_Groups_Group
Group object.
array
User IDs who were in this group.
bp_groups_clear_invite_count_for_user(integer $user_id)
Count is cleared when an invitation is accepted, rejected or deleted.
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The user ID.
bp_groups_clear_invite_count_on_send(integer $group_id, array $invited_users)
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The group ID. Not used in this function.
array
Array of invited user IDs.
bp_groups_clear_invite_count_on_uninvite(integer $group_id, integer $user_id)
Groan. Our API functions are not consistent.
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
The group ID. Not used in this function.
integer
The user ID.
bp_groups_clear_user_group_cache_on_invitation_change(array $args)
This also catches changes like sending an invite or marking one as accepted.
package | BuddyPress |
---|---|
since | 5.0.0 |
array
Associative array of columns/values describing invitations about to be deleted.
bp_groups_clear_user_group_cache_on_invitation_save(\BP_Invitation $invitation)
The save action is called when inserting a new record or using the save() method to update an existing record.
package | BuddyPress |
---|---|
since | 5.0.0 |
\BP_Invitation
Characteristics of the invitation just saved.
bp_groups_clear_user_group_cache_on_membership_save(\BP_Groups_Member $member)
bp_groups_clear_user_group_cache_on_other_events(integer $user_id, integer $group_id)
package | BuddyPress |
---|---|
since | 2.6.0 |
integer
Current user ID.
integer
Current group ID.
bp_groups_current_create_step()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_groups_default_avatar(string $avatar, array $params) : string
package | BuddyPress |
---|---|
since | 2.6.0 |
string
Current avatar src.
array
Avatar params.
string
bp_groups_defer_group_members_count(boolean $defer= true
, integer $group_id= 0
)
package | BuddyPress |
---|---|
since | 10.3.0 |
boolean
True to defer, false otherwise.
integer
The group's ID.
bp_groups_delete_group_cache(integer $group_id = 0
)
bp_groups_delete_group_delete_all_activity(integer $group_id)
bp_groups_delete_group_delete_all_notifications(integer $group_id)
bp_groups_delete_promotion_notifications(integer $user_id= 0
, integer $group_id= 0
)
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
ID of the user.
integer
ID of the group.
bp_groups_directory_permalink()
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
bp_groups_disable_at_mention_notification_for_non_public_groups(boolean $send, array $usernames, integer $user_id, \BP_Activity_Activity $activity) : boolean
package | BuddyPress |
---|---|
since | 2.5.0 |
boolean
Whether to send the notification.
array
Array of all usernames being notified.
integer
ID of the user to be notified.
\BP_Activity_Activity
Activity object.
boolean
bp_groups_filter_activity_can_comment(boolean $retval, null|\BP_Activity_Activity $activity = null
) : boolean
Used as a filter callback to 'bp_activity_can_comment'.
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
True if item can receive comments.
null
\BP_Activity_Activity
Null by default. Pass an activity object to check against that instead.
boolean
bp_groups_filter_activity_can_comment_reply(boolean $retval, object|boolean $comment) : boolean
Used as a filter callback to 'bp_activity_can_comment_reply'.
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
True if activity comment can be replied to.
object
boolean
Current activity comment object. If empty, parameter is boolean false.
boolean
bp_groups_filter_activity_favorites_scope(array $retval, array $filter) : array
bp_groups_filter_activity_scope(array $retval= array()
, array $filter= array()
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
array
Empty array by default.
array
Current activity arguments.
array
bp_groups_filter_activity_user_can_delete(boolean $retval, object $activity) : boolean
Used as a filter callback to 'bp_activity_user_can_delete'.
package | BuddyPress |
---|---|
since | 6.0.0 |
boolean
True if item can receive comments.
object
Activity item being checked.
boolean
bp_groups_filter_kses(string $content = ''
) : string
bp_groups_filter_title()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
bp_groups_format_activity_action_created_group(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
bp_groups_format_activity_action_group_activity_update(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 5.0.0 |
string
Static activity action.
object
Activity data object.
string
The formatted action for activity updates posted in a Group.bp_groups_format_activity_action_group_details_updated(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.2.0 |
string
Static activity action.
object
Activity data object.
string
bp_groups_format_activity_action_joined_group(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity data object.
string
bp_groups_front_template_part()
You should only use this when on a single group page.
package | BuddyPress |
---|---|
since | 2.4.0 |
bp_groups_get_activity_group(integer $group_id = 0
) : \BP_Groups_Group
package | BuddyPress |
---|---|
since | 5.0.0 |
integer
The group ID the activity is linked to.
\BP_Groups_Group
The group object the activity belongs to.bp_groups_get_create_url($action_variables = array()
) : string
bp_groups_get_front_template(\BP_Groups_Group|null $group = null
) : string | boolean
package | BuddyPress |
---|---|
since | 2.4.0 |
since | 2.6.0 Adds the Group Type to the front template hierarchy. |
\BP_Groups_Group
null
Optional. Falls back to current group if not passed.
string
boolean
Path to front template on success; boolean false on failure.bp_groups_get_group_manage_members_script_data(integer $group_id = 0
) : array
package | BuddyPress |
---|---|
since | 5.0.0 |
integer
Required. The Group ID whose members has to be managed.
array
The JavaScript data.bp_groups_get_group_roles() : array
bp_groups_get_group_type(integer $group_id, boolean $single= true
, boolean $use_db= true
) : string | array | boolean
package | BuddyPress |
---|---|
since | 2.6.0 |
since | 7.0.0 Adds the `$use_db` parameter. |
integer
ID of the group.
boolean
Optional. Whether to return a single type string. If multiple types are found for the group, the oldest one will be returned. Default: true.
boolean
Optional. Whether to request all group types or only the ones registered by code. Default: true.
string
array
boolean
On success, returns a single group type (if `$single` is true) or an array of group
types (if `$single` is false). Returns false on failure.bp_groups_get_group_type_object(string $group_type) : object
package | BuddyPress |
---|---|
since | 2.6.0 |
string
The name of the group type.
object
A group type object.bp_groups_get_group_types(array|string $args= array()
, string $output= 'names'
, string $operator= 'and'
) : array
package | BuddyPress |
---|---|
since | 2.6.0 |
see | for accepted arguments. |
array
string
Optional. An array of key => value arguments to match against the group type objects. Default empty array.
string
Optional. The type of output to return. Accepts 'names' or 'objects'. Default 'names'.
string
Optional. The logical operation to perform. 'or' means only one element from the array needs to match; 'and' means all elements must match. Accepts 'or' or 'and'. Default 'and'.
array
$types A list of groups type names or objects.bp_groups_get_path_chunks(array $chunks= array()
, string $context= 'read'
) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
array
An array of BP URL default slugs.
string
Whether to get chunks for the 'read', 'create' or 'manage' contexts.
array
An associative array containing group's customized path chunks.bp_groups_get_profile_stats(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
before|after|user_id
string
HTML for stats output.bp_groups_group_details_updated_add_activity(integer $group_id, \BP_Groups_Group $old_group, boolean $notify_members) : null | \WP_Error | boolean | integer
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
ID of the group.
\BP_Groups_Group
Group object before the details had been changed.
boolean
True if the admin has opted to notify group members, otherwise false.
null
\WP_Error
boolean
integer
The ID of the activity on success. False on error.bp_groups_has_directory() : boolean
bp_groups_has_group_type(integer $group_id, string $group_type) : boolean
package | BuddyPress |
---|---|
since | 2.6.0 |
integer
ID of the group.
string
Group type.
boolean
Whether the group has the give group type.bp_groups_has_manage_group_members_templates() : boolean
package | BuddyPress |
---|---|
since | 5.0.0 |
boolean
True if the active template pack includes the Group Membership management UI templates.
False otherwise.bp_groups_header_tabs()
package | BuddyPress |
---|---|
since | 1.0.0 |
deprecated | 12.0.0 |
bp_groups_leave_group_delete_recent_activity(integer $group_id, integer $user_id)
If the user joined this group less than five minutes ago, remove the joined_group activity so users cannot flood the activity stream by joining/leaving the group in quick succession.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the group.
integer
ID of the user leaving the group.
bp_groups_manage_group_members_interface(string $hook = 'wp_footer'
)
bp_groups_maybe_load_mentions_scripts(boolean $load_mentions, boolean $mentions_enabled) : boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
boolean
True to load mentions assets, false otherwise.
boolean
True if mentions are enabled.
boolean
True if mentions scripts should be loaded.bp_groups_membership_accepted_add_activity(integer $user_id, integer $group_id) : false | null
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user joining the group.
integer
ID of the group.
false
null
False on failure.bp_groups_memberships_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_groups_migrate_invitations()
package | BuddyPress |
---|---|
since | 5.0.0 |
global | wpdb $wpdb WordPress database object. |
bp_groups_pagination_count()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_groups_pagination_links()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_groups_pending_received_invitations_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_groups_pending_requests_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_groups_pending_sent_invitations_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_groups_prefetch_activity_object_data(array $activities) : array
This reduces database overhead during the activity loop.
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
array
Array of activity items.
array
bp_groups_print_manage_group_members_placeholders()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_groups_print_manage_group_members_templates()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_groups_process_group_type_update(integer $group_id)
bp_groups_profile_stats(array|string $args = ''
)
bp_groups_register_group_type(string $group_type, array $args = array()
) : object | \WP_Error
package | BuddyPress |
---|---|
since | 2.6.0 |
since | 2.7.0 Introduce $has_directory, $show_in_create_screen, $show_in_list, and $description, $create_screen_checked as $args parameters. |
string
Unique string identifier for the group type.
array
{ Array of arguments describing the group type.
@type string|bool $has_directory Set the slug to be used for custom group directory page. eg.
example.com/groups/type/MY_SLUG. Default: false.
@type bool $show_in_create_screen Whether this group type is allowed to be selected on the group creation
page. Default: false.
@type bool|null $show_in_list Whether this group type should be shown in lists rendered by
bp_group_type_list(). Default: null. If $show_in_create_screen is true,
this will default to true, unless this is set explicitly to false.
@type string $description A short descriptive summary of what the group type is. Currently shown
on a group's "Manage > Settings" page when selecting group types.
@type bool $create_screen_checked If $show_in_create_screen is true, whether we should have our group type
checkbox checked by default. Handy if you want to imply that the group
type should be enforced, but decision lies with the group creator.
Default: false.
@type array $labels {
Array of labels to use in various parts of the interface.
@type string $name Default name. Should typically be plural.
@type string $singular_name Singular name.
}
}
object
\WP_Error
Group type object on success, WP_Error object on failure.bp_groups_register_group_type_taxonomy(array $taxonomies = array()
) : array
package | BuddyPress |
---|---|
since | 7.0.0 |
array
BuddyPress default taxonomies.
array
BuddyPress default taxonomies.bp_groups_register_group_types()
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_groups_register_personal_data_exporters(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_groups_remove_data_for_user_notifications(integer $user_id)
bp_groups_remove_data_for_user_on_delete_user(integer $user_id)
bp_groups_remove_group_type(integer $group_id, string $group_type) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 2.6.0 |
integer
ID of the user.
string
Group type.
boolean
\WP_Error
$deleted True on success. False or WP_Error on failure.bp_groups_render_dynamic_groups_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_groups_render_group_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 6.0.0 |
array
The block attributes.
string
HTML output.bp_groups_render_groups_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
array
The block attributes.
string
HTML output.bp_groups_reset_cache_incrementor()
This function invalidates all cached results of group queries, whenever one of the following events takes place:
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_groups_reset_cache_incrementor_on_group_term_change(integer $object_id, array $terms, array $tt_ids, string $taxonomy)
We infer that a group is being affected by looking at the objects belonging to the taxonomy being affected.
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
ID of the item whose terms are being modified.
array
Array of object terms.
array
Array of term taxonomy IDs.
string
Taxonomy slug.
bp_groups_reset_cache_incrementor_on_group_term_remove(integer $object_id, array $terms, string $taxonomy)
We infer that a group is being affected by looking at the objects belonging to the taxonomy being affected.
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
ID of the item whose terms are being modified.
array
Array of object terms.
string
Taxonomy slug.
bp_groups_screen_group_admin_requests_mark_notifications()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_groups_screen_invites_mark_notifications()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_groups_screen_my_groups_mark_notifications()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_groups_set_group_type(integer $group_id, string|array $group_type, boolean $append = false
) : false | array
package | BuddyPress |
---|---|
since | 2.6.0 |
since | 2.7.0 $group_type parameter also accepts an array of group types now. |
integer
ID of the group.
string
array
Group type or array of group types to set.
boolean
Optional. True to append this to existing types for group, false to replace. Default: false.
false
array
$retval See bp_set_object_terms().bp_groups_type_admin_type_exists(boolean $exists= false
, string $type_id= ''
) : boolean
package | BuddyPress |
---|---|
since | 7.0.0 |
boolean
True if the group type already exists. False otherwise.
string
The group type identifier.
boolean
True if the group type already exists. False otherwise.bp_groups_uninvite_user_delete_group_invite_notification(integer $group_id= 0
, integer $user_id= 0
)
package | BuddyPress |
---|---|
since | 5.0.0 |
integer
ID of the group being uninvited from.
integer
ID of the user being uninvited.
bp_groups_update_group_members_count(\BP_Groups_Member|integer $groups_member, integer $group_id = 0
)
package | BuddyPress |
---|---|
since | 10.3.0 |
\BP_Groups_Member
integer
The BP_Groups_Member object or the group member ID.
integer
The group's ID.
bp_groups_update_orphaned_groups_on_group_delete(\BP_Groups_Group $group)
package | BuddyPress |
---|---|
since | 2.7.0 |
\BP_Groups_Group
Instance of the group item being deleted.
bp_groups_user_can_access_current_group() : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
boolean
True if the current user can access to the current group.
False otherwise.bp_groups_user_can_filter(boolean $retval, integer $user_id, string $capability, integer $site_id, array $args) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
Whether or not the current user has the capability.
integer
string
The capability being checked for.
integer
Site ID. Defaults to the BP root blog.
array
Array of extra arguments passed.
boolean
bp_groups_user_can_send_invites(integer $group_id= 0
, integer $user_id= 0
) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 2.2.0 Added the $user_id parameter. |
integer
The group ID to check.
integer
The user ID to check.
boolean
bp_has_activities(array|string $args = ''
) : boolean
Based on the $args passed, bp_has_activities() populates the $activities_template global, enabling the use of BuddyPress templates and template functions to display a list of activity items.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.4.0 Introduced the `$fields` parameter. |
global | BP_Activity_Template $activities_template The main activity template loop class. |
array
string
{ Arguments for limiting the contents of the activity loop. Most arguments are in the same format as {@link BP_Activity_Activity::get()}. However, because the format of the arguments accepted here differs in a number of ways, and because bp_has_activities() determines some default arguments in a dynamic fashion, we list all accepted arguments here as well.
Arguments can be passed as an associative array, or as a URL querystring
(eg, 'user_id=4&display_comments=threaded').
@type int $page Which page of results to fetch. Using page=1 without per_page will result
in no pagination. Default: 1.
@type int|bool $per_page Number of results per page. Default: 20.
@type string $page_arg String used as a query parameter in pagination links. Default: 'acpage'.
@type int|bool $max Maximum number of results to return. Default: false (unlimited).
@type string $fields Activity fields to retrieve. 'all' to fetch entire activity objects,
'ids' to get only the activity IDs. Default 'all'.
@type string|bool $count_total If true, an additional DB query is run to count the total activity items
for the query. Default: false.
@type string $sort 'ASC' or 'DESC'. Default: 'DESC'.
@type array|bool $exclude Array of activity IDs to exclude. Default: false.
@type array|bool $in Array of IDs to limit query by (IN). 'in' is intended to be used in
conjunction with other filter parameters. Default: false.
@type array|bool $include Array of exact activity IDs to query. Providing an 'include' array will
override all other filters passed in the argument array. When viewing the
permalink page for a single activity item, this value defaults to the ID of
that item. Otherwise the default is false.
@type array $meta_query Limit by activitymeta by passing an array of meta_query conditions. See
{@link WP_Meta_Query::queries} for a description of the syntax.
@type array $date_query Limit by date by passing an array of date_query conditions. See first
parameter of {@link WP_Date_Query::__construct()} for syntax.
@type array $filter_query Advanced activity filtering. See {@link BP_Activity_Query::__construct()}.
@type string $search_terms Limit results by a search term. Default: false.
@type string $scope Use a BuddyPress pre-built filter.
- 'just-me' retrieves items belonging only to a user; this is equivalent
to passing a 'user_id' argument.
- 'friends' retrieves items belonging to the friends of a user.
- 'groups' retrieves items belonging to groups to which a user belongs to.
- 'favorites' retrieves a user's favorited activity items.
- 'mentions' retrieves items where a user has received an @-mention.
The default value of 'scope' is set to one of the above if that value
appears in the appropriate place in the URL; eg, 'scope' will be 'groups'
when visiting http://example.com/members/joe/activity/groups/. Otherwise
defaults to false.
@type int|array|bool $user_id The ID(s) of user(s) whose activity should be fetched. Pass a single ID or
an array of IDs. When viewing a user profile page (but not that user's
activity subpages, ie My Friends, My Groups, etc), 'user_id' defaults to
the ID of the displayed user. Otherwise the default is false.
@type string|array|bool $object Filters by the `component` column in the database, which is generally the
component ID in the case of BuddyPress components, or the plugin slug in
the case of plugins. For example, 'groups' will limit results to those that
are associated with the BP Groups component. Accepts a single component
string, or an array of multiple components. Defaults to 'groups' when
viewing the page of a single group, the My Groups activity filter, or the
Activity > Groups filter of a user profile. Otherwise defaults to false.
@type string|array|bool $action Filters by the `type` column in the database, which is a string
categorizing the activity item (eg, 'new_blog_post', 'created_group').
Accepts a comma-delimited string or an array of types. Default: false.
@type int|array|bool $primary_id Filters by the `item_id` column in the database. The meaning of
'primary_id' differs between components/types; for example, in the case of
'created_group', 'primary_id' is the ID of the group. Accepts a single ID,
or an array of multiple IDs. When viewing a single group, defaults to the
current group ID. When viewing a user's Groups stream page, defaults to the
IDs of the user's groups. Otherwise defaults to false.
@type int|array|bool $secondary_id Filters by the `secondary_item_id` column in the database. The meaning of
'secondary_id' differs between components/types. Accepts a single ID, or an
array of multiple IDs. Defaults to false.
@type int $offset Return only activity items with an ID greater than or equal to this one.
Note that providing an offset will disable pagination. Default: false.
@type string|bool $display_comments How to handle activity comments. Possible values:
- 'threaded' - comments appear in a threaded tree, under their parent
items.
- 'stream' - the activity stream is presented in a flat manner, with
comments sorted in chronological order alongside other activity items.
- false - don't fetch activity comments at all.
Default: 'threaded'.
@type bool $show_hidden Whether to show items marked hide_sitewide. Defaults to false, except in
the following cases:
- User is viewing his own activity stream.
- User is viewing the activity stream of a non-public group of which he
is a member.
@type string|bool $spam Spam status. 'ham_only', 'spam_only', or false to show all activity
regardless of spam status. Default: 'ham_only'.
@type bool $populate_extras Whether to pre-fetch the activity metadata for the queried items.
Default: true.
}
boolean
Returns true when activities are found, otherwise false.bp_has_blogs(array|string $args = ''
) : boolean
Based on the $args passed, bp_has_blogs() populates the $blogs_template global, enabling the use of BuddyPress templates and template functions to display a list of blogs.
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 1.2.0 Added $type, $page, $search_terms parameters |
since | 1.6.0 Added $page_arg parameter |
since | 2.0.0 Added $include_blog_ids, $update_meta_cache parameters |
since | 10.0.0 Added $date_query parameter |
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
array
string
{ Arguments for limiting the contents of the blogs loop. Most arguments are in the same format as {@link BP_Blogs_Blog::get()}. However, because the format of the arguments accepted here differs in a number of ways, and because bp_has_blogs() determines some default arguments in a dynamic fashion, we list all accepted arguments here as well.
@type int $page Which page of results to fetch. Using page=1 without
per_page will result in no pagination. Default: 1.
@type int|bool $per_page Number of results per page. Default: 20.
@type string $page_arg The string used as a query parameter in
pagination links. Default: 'bpage'.
@type int|bool $max Maximum number of results to return.
Default: false (unlimited).
@type string $type The order in which results should be fetched.
'active', 'alphabetical', 'newest', or 'random'.
@type array $include_blog_ids Array of blog IDs to limit results to.
@type string $search_terms Limit results by a search term. Default: the value of `$_REQUEST['s']` or
`$_REQUEST['sites_search']`, if present.
@type int $user_id The ID of the user whose blogs should be retrieved.
When viewing a user profile page, 'user_id' defaults to the
ID of the displayed user. Otherwise the default is false.
@type array $date_query Filter results by site last activity date. See first parameter of
{@link WP_Date_Query::__construct()} for syntax. Only applicable if
$type is either 'newest' or 'active'.
}
boolean
Returns true when blogs are found, otherwise false.bp_has_custom_activation_page() : boolean
bp_has_custom_signup_page() : boolean
bp_has_friends_to_invite(object|boolean $group = false
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
object
boolean
Optional. Group object. Default: current group in the loop.
boolean
bp_has_groups(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.6.0 Added `$group_type`, `$group_type__in`, and `$group_type__not_in` parameters. |
since | 2.7.0 Added `$update_admin_cache` parameter. |
since | 7.0.0 Added `$status` parameter. |
since | 10.0.0 Added `$date_query` parameter. |
global | BP_Groups_Template $groups_template The Groups template loop class. |
array
string
{
Array of parameters. All items are optional.
@type string $type Shorthand for certain orderby/order combinations. 'newest', 'active',
'popular', 'alphabetical', 'random'. When present, will override
orderby and order params. Default: null.
@type string $order Sort order. 'ASC' or 'DESC'. Default: 'DESC'.
@type string $orderby Property to sort by. 'date_created', 'last_activity',
'total_member_count', 'name', 'random'. Default: 'last_activity'.
@type int $page Page offset of results to return. Default: 1 (first page of results).
@type int $per_page Number of items to return per page of results. Default: 20.
@type int $max Does NOT affect query. May change the reported number of total groups
found, but not the actual number of found groups. Default: false.
@type bool $show_hidden Whether to include hidden groups in results. Default: false.
@type string $page_arg Query argument used for pagination. Default: 'grpage'.
@type int $user_id If provided, results will be limited to groups of which the specified
user is a member. Default: value of bp_displayed_user_id().
@type string $slug If provided, only the group with the matching slug will be returned.
Default: false.
@type string $search_terms If provided, only groups whose names or descriptions match the search
terms will be returned. Default: value of $_REQUEST['groups_search']
or
$_REQUEST['s']
, if present. Otherwise false.
@type array|string $group_type Array or comma-separated list of group types to limit results to.
@type array|string $group_type__in Array or comma-separated list of group types to limit results to.
@type array|string $group_typenot_in Array or comma-separated list of group types that will be
excluded from results.
@type array|string $status Array or comma-separated list of group statuses to limit results to.
@type array $meta_query An array of meta_query conditions.
See {@link WP_Meta_Query::queries} for description.
@type array $date_query Filter results by group last activity date. See first parameter of
{@link WP_Date_Query::construct()} for syntax. Only applicable if
$type is either 'newest' or 'active'.
@type array|string $include Array or comma-separated list of group IDs. Results will be limited
to groups within the list. Default: false.
@type array|string $exclude Array or comma-separated list of group IDs. Results will exclude
the listed groups. Default: false.
@type array|string $parent_id Array or comma-separated list of group IDs. Results will include only
child groups of the listed groups. Default: null.
@type bool $update_meta_cache Whether to fetch groupmeta for queried groups. Default: true.
@type bool $update_admin_cache Whether to pre-fetch group admins for queried groups.
Defaults to true when on a group directory, where this
information is needed in the loop. Otherwise false.
}
boolean
True if there are groups to display that match the paramsbp_has_member_type(integer $user_id, string $member_type) : boolean
package | BuddyPress |
---|---|
since | 2.3.0 |
integer
$user_id ID of the user.
string
Member Type.
boolean
Whether the user has the given member type.bp_has_members(array|string $args = ''
) : boolean
Based on the $args passed, bp_has_members() populates the $members_template global, enabling the use of BuddyPress templates and template functions to display a list of members.
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 7.0.0 Added `xprofile_query` parameter. Added `user_ids` parameter. |
since | 10.0.0 Added `date_query` parameter. |
global | BP_Core_Members_Template $members_template The main member template loop class. |
array
string
{ Arguments for limiting the contents of the members loop. Most arguments are in the same format as {@link BP_User_Query}. However, because the format of the arguments accepted here differs in a number of ways, and because bp_has_members() determines some default arguments in a dynamic fashion, we list all accepted arguments here as well.
Arguments can be passed as an associative array, or as a URL query
string (eg, 'user_id=4&per_page=3').
@type int $type Sort order. Accepts 'active', 'random', 'newest', 'popular',
'online', 'alphabetical'. Default: 'active'.
@type int|bool $page Page of results to display. Default: 1.
@type int|bool $per_page Number of results per page. Default: 20.
@type int|bool $max Maximum number of results to return. Default: false (unlimited).
@type string $page_arg The string used as a query parameter in pagination links.
Default: 'bpage'.
@type array|int|string|bool $include Limit results by a list of user IDs. Accepts an array, a
single integer, a comma-separated list of IDs, or false (to
disable this limiting). Accepts 'active', 'alphabetical',
'newest', or 'random'. Default: false.
@type array|int|string|bool $exclude Exclude users from results by ID. Accepts an array, a single
integer, a comma-separated list of IDs, or false (to disable
this limiting). Default: false.
@type array|string|bool $user_ids An array or comma-separated list of IDs, or false (to
disable this limiting). Default: false.
@type int $user_id If provided, results are limited to the friends of the specified
user. When on a user's Friends page, defaults to the ID of the
displayed user. Otherwise defaults to 0.
@type string|array $member_type Array or comma-separated list of member types to limit
results to.
@type string|array $member_type__in Array or comma-separated list of member types to limit
results to.
@type string|array $member_type__not_in Array or comma-separated list of member types to exclude
from results.
@type string $search_terms Limit results by a search term. Default: value of
`$_REQUEST['members_search']` or `$_REQUEST['s']`, if present.
Otherwise false.
@type string $meta_key Limit results by the presence of a usermeta key.
Default: false.
@type mixed $meta_value When used with meta_key, limits results by the a matching
usermeta value. Default: false.
@type array $xprofile_query Filter results by xprofile data. Requires the xprofile
component. See {@see BP_XProfile_Query} for details.
@type array $date_query Filter results by member last activity date. See first parameter of
{@link WP_Date_Query::__construct()} for syntax. Only applicable if
$type is either 'active', 'random', 'newest', or 'online'.
@type bool $populate_extras Whether to fetch optional data, such as friend counts.
Default: true.
}
boolean
Returns true when blogs are found, otherwise false.bp_has_members_invitations(array|string $args = ''
) : boolean
Based on the $args passed, bp_has_invitations() populates buddypress()->invitations->query_loop global, enabling the use of BP templates and template functions to display a list of invitations.
package | BuddyPress |
---|---|
since | 8.0.0 |
array
string
{ Arguments for limiting the contents of the invitations loop. Can be passed as an associative array, or as a URL query string.
See {@link BP_Invitations_Invitation::get()} for detailed
information on the arguments. In addition, also supports:
@type int $max Optional. Max items to display. Default: false.
@type string $page_arg URL argument to use for pagination.
Default: 'ipage'.
}
boolean
bp_has_notifications(array|string $args = ''
) : boolean
Based on the $args passed, bp_has_notifications() populates buddypress()->notifications->query_loop global, enabling the use of BP templates and template functions to display a list of notifications.
package | BuddyPress |
---|---|
since | 1.9.0 |
array
string
{ Arguments for limiting the contents of the notifications loop. Can be passed as an associative array, or as a URL query string.
See {@link BP_Notifications_Notification::get()} for detailed
information on the arguments. In addition, also supports:
@type int $max Optional. Max items to display. Default: false.
@type string $page_arg URL argument to use for pagination.
Default: 'npage'.
}
boolean
bp_has_pretty_urls() : boolean
bp_has_profile(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.4.0 Introduced `$member_type` argument. |
since | 8.0.0 Introduced `$hide_field_types` & `$signup_fields_only` arguments. |
since | 11.0.0 `$profile_group_id` accepts an array of profile group ids. |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
see | for full description of `$args` array. |
array
string
{ Array of arguments. See BP_XProfile_Group::get() for full description. Those arguments whose defaults differ from that method are described here: @type int $user_id Default: ID of the displayed user. @type string|array $member_type Default: 'any'. @type int|int[]|bool $profile_group_id Default: false. @type bool $hide_empty_groups Default: true. @type bool $hide_empty_fields Defaults to true on the Dashboard, on a user's Edit Profile page, or during registration. Otherwise false. @type bool $fetch_fields Default: true. @type bool $fetch_field_data Default: true. @type bool $fetch_visibility_level Defaults to true when an admin is viewing a profile, or when a user is viewing her own profile, or during registration. Otherwise false. @type int[]|bool $exclude_groups Default: false. @type int[]|bool $exclude_fields Default: false. @type string[] $hide_field_types Default: empty array. @type bool $signup_fields_only Default: false. @type bool $update_meta_cache Default: true. }
boolean
bp_head()
Hooked to 'wp_head'.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_include()
package | BuddyPress |
---|---|
since | 1.2.5 |
bp_init()
package | BuddyPress |
---|---|
since | 1.2.5 |
bp_initial_version()
package | BuddyPress |
---|---|
since | 11.0.0 |
bp_insert_group_types_registered_by_code()
package | BuddyPress |
---|---|
since | 7.0.0 |
bp_insert_member_types_registered_by_code()
package | BuddyPress |
---|---|
since | 7.0.0 |
bp_insert_site(integer|\WP_Site $site, integer|array $args_or_user_id= null
, string $domain= ''
, string $path= ''
, integer $network_id= 0
, array $meta= array()
)
This hook makes sure BuddyPress is back compatible with WordPress versions < 5.1.0.
package | BuddyPress |
---|---|
since | 6.0.0 |
integer
\WP_Site
The Site ID or the WP Site object.
integer
array
An array of Site arguments or the User ID.
string
Site domain.
string
Site path.
integer
Network ID. Only relevant on multi-network installations.
array
Meta data. Used to set initial site options.
bp_insert_site_hook() : string
WordPress 5.1.0 deprecated the wpmu_new_blog
action. As BuddyPress is supporting WordPress back
to 4.9.0, this function makes sure we are using the new hook wp_initialize_site
when the current
WordPress version is upper or equal to 5.1.0 and that we keep on using wpmu_new_blog
for earlier
versions of WordPress.
package | BuddyPress |
---|---|
since | 6.0.0 |
deprecated | 10.0.0 |
string
The name of the hook to use.bp_insert_term(string $term, string $taxonomy= ''
, array $args= array()
) : array | \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
string
The BP term name to add.
string
The BP taxonomy to which to add the BP term.
array
{ Optional. Array of arguments for inserting a BP term. @type string $description The term description. Default empty string. @type string $slug The term slug to use. Default empty string. @type array $metas The term metas to add. Default empty array. }
array
\WP_Error
An array containing the `term_id` and `term_taxonomy_id`,
WP_Error otherwise.bp_invitations_reset_cache_incrementor()
package | BuddyPress |
---|---|
since | 5.0.0 |
bp_is_action_variable(string $action_variable= ''
, integer|boolean $position= false
) : boolean
Along with bp_is_current_component() and bp_is_current_action(), this function is mostly used to help determine when to use a given screen function.
In BP parlance, action_variables are an array made up of the URL chunks appearing after the current_action in a URL. For example, http://example.com/groups/my-group/admin/group-settings $action_variables[0] is 'group-settings'.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The action_variable being tested against.
integer
boolean
Optional. The array key you're testing against. If you don't provide a $position, the function will return true if the $action_variable is found anywhere in the action variables array.
boolean
True if $action_variable matches at the $position provided.bp_is_activation(string $basename = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
string
BuddyPress basename.
boolean
True if activating BuddyPress, false if not.bp_is_activation_page() : boolean
bp_is_active(string $component= ''
, string $feature= ''
) : boolean
package | BuddyPress |
---|---|
since | 1.2.0 See r2539. |
since | 2.3.0 Added $feature as a parameter. |
string
The component name.
string
The feature name.
boolean
bp_is_activity_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Activity component.bp_is_activity_directory() : boolean
bp_is_activity_front_page() : boolean
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Use bp_is_component_front_page( 'activity' ) |
boolean
bp_is_activity_heartbeat_active(boolean $default_value = true
) : boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
boolean
Optional. Fallback value if not found in the database. Default: true.
boolean
True if Heartbeat refresh is enabled, otherwise false.bp_is_admin(string $screen_id = ''
) : boolean
package | BuddyPress |
---|---|
since | 15.0.0 |
string
The specific screen ID to check.
boolean
True if a BuddyPress admin screen is displayed. False otherwise.bp_is_blog_page() : boolean
You can tell if a page is displaying BP content by whether the current_component has been defined.
package | BuddyPress |
---|---|
since | 1.0.0 |
boolean
True if it's a non-BP page, false otherwise.bp_is_blogs_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Blogs component.bp_is_blogs_directory() : boolean
bp_is_classic() : boolean
bp_is_component_front_page(string $component = ''
) : boolean
Corresponds to the setting in wp-admin's Settings > Reading screen.
package | BuddyPress |
---|---|
since | 1.5.0 |
global | int $current_blog WordPress global for the current blog. |
string
Optional. Name of the component to check for. Default: current component.
boolean
True if the specified component is set to be the site's front
page, otherwise false.bp_is_create_blog() : boolean
bp_is_current_action(string $action = ''
) : boolean
Along with bp_is_current_component() and bp_is_action_variable(), this function is mostly used to help determine when to use a given screen function.
In BP parlance, the current_action is the URL chunk that comes directly after the current item slug. E.g., in http://example.com/groups/my-group/members the current_action is 'members'.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The action being tested against.
boolean
True if the current action matches $action.bp_is_current_component(string $component = ''
) : boolean
This function is designed to be generous, accepting several different kinds of value for the $component parameter. It checks $component_name against:
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Name of the component being checked.
boolean
Returns true if the component matches, or else false.bp_is_current_component_core() : boolean
Use this function when you need to check if the current component is an active core component of BuddyPress. If the current component is inactive, it will return false. If the current component is not part of BuddyPress core, it will return false. If the current component is active, and is part of BuddyPress core, it will return true.
package | BuddyPress |
---|---|
since | 1.7.0 |
boolean
True if the current component is active and is one of BP's
packaged components.bp_is_current_item(string $item = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The item being checked.
boolean
True if $item is the current item.bp_is_deactivation(string $basename = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
string
BuddyPress basename.
boolean
True if deactivating BuddyPress, false if not.bp_is_directory() : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
boolean
True if the current page is a component directory, otherwise false.bp_is_directory_homepage(string $component = ''
) : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The component ID.
boolean
True if a component's directory is set as the site's homepage.
False otherwise.bp_is_email_customizer() : boolean
bp_is_first_group_creation_step(string $step = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
Step to compare.
boolean
True if yes, False if nobp_is_forums_component() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
since | 3.0.0 Required for bbPress 2 integration. |
boolean
True if the current page is part of the Forums component.bp_is_friend(integer $user_id = 0
) : boolean | string
Returns - 'is_friend', 'not_friends', 'pending'.
package | BuddyPress |
---|---|
since | 1.2.6 |
integer
ID of the potential friend. Default: the value of {@link bp_get_potential_friend_id()}.
boolean
string
'is_friend', 'not_friends', or 'pending'.bp_is_friends_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Friends component.bp_is_front_page() : boolean
bp_is_get_request() : boolean
bp_is_group() : boolean
Will return true for any subpage of a single group.
package | BuddyPress |
---|---|
since | 1.2.0 |
boolean
True if the current page is part of a single group.bp_is_group_activity() : boolean
bp_is_group_admin_page() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of a single group's admin.bp_is_group_admin_screen(string $slug = ''
) : boolean
bp_is_group_create() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the group creation process.bp_is_group_creation_step(string $step_slug) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
The group creation step's slug.
boolean
bp_is_group_creation_step_complete(array $step_slugs) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
array
The list of group creation step slugs.
boolean
bp_is_group_creator(false|integer|string|\BP_Groups_Group $group= false
, integer $user_id= 0
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 10.0.0 Updated to use `bp_get_group`. |
false
integer
string
\BP_Groups_Group
(Optional) The Group ID, the Group Slug or the Group object. Default: false.
integer
ID of the user. Default: current logged in user.
boolean
bp_is_group_custom_front() : boolean
bp_is_group_forum() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 3.0.0 Always returns false. |
deprecated | 3.0.0 No longer used in core, but supported for custom theme templates. |
boolean
bp_is_group_forum_topic() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 3.0.0 Required for bbPress 2 integration. |
boolean
True if the current page is part of a group forum topic.bp_is_group_forum_topic_edit() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 3.0.0 Required for bbPress 2 integration. |
boolean
True if the current page is part of a group forum topic edit page.bp_is_group_forums_active(boolean $default = false
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
since | 3.0.0 $default argument's default value changed from true to false. |
deprecated | 3.0.0 No longer used in core, but supported for third-party code. |
boolean
Optional. Fallback value if not found in the database. Default: false.
boolean
True if group forums are active, otherwise false.bp_is_group_home() : boolean
URL will vary depending on which group tab is set to be the "home". By default, it's the group's recent activity.
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a single group's home page.bp_is_group_invites() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a group's Send Invites page.bp_is_group_leave() : boolean
bp_is_group_members() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of a group's Members page.bp_is_group_membership_request() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
boolean
True if the current page is a group's Request Membership page.bp_is_group_single() : boolean
Not currently used by BuddyPress.
package | BuddyPress |
---|---|
todo | How is this functionally different from bp_is_group()? |
boolean
True if the current page is part of a single group.bp_is_groups_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Groups component.bp_is_groups_directory() : boolean
bp_is_install() : boolean
If there is no raw DB version, we infer that this is the first installation.
package | BuddyPress |
---|---|
since | 1.7.0 |
boolean
True if this is a fresh BP install, otherwise false.bp_is_item_admin() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current user is an admin for the current item,
otherwise false.bp_is_item_mod() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current user is a mod for the current item,
otherwise false.bp_is_large_install() : boolean
By default, an installation counts as "large" if there are 10000 users or more. Filter 'bp_is_large_install' to adjust.
package | BuddyPress |
---|---|
since | 4.1.0 |
boolean
bp_is_last_group_creation_step(string $step = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
string
Step to compare.
boolean
True if yes, False if nobp_is_members_component() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is part of the Members component.bp_is_members_directory() : boolean
bp_is_members_invitations_screen() : boolean
bp_is_multiblog_mode() : boolean
Note that BP_ENABLE_MULTIBLOG is different from (but dependent on) WordPress Multisite. "Multiblog" is BuddyPress setup that allows BuddyPress components to be viewed on every blog on the network, each with their own settings.
Thus, instead of having all 'boonebgorges' links go to http://example.com/members/boonebgorges on the root blog, each blog will have its own version of the same content, eg http://site2.example.com/members/boonebgorges (for subdomains) http://example.com/site2/members/boonebgorges (for subdirectories)
Multiblog mode is disabled by default, meaning that all BuddyPress content must be viewed on the root blog. It's also recommended not to use the BP_ENABLE_MULTIBLOG constant beyond 1.7, as BuddyPress can now be activated on individual sites.
Why would you want to use this? Originally it was intended to allow BuddyPress to live in mu-plugins and be visible on mapped domains. This is a very small use-case with large architectural shortcomings, so do not go down this road unless you specifically need to.
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
False when multiblog mode is disabled; true when enabled.
Default: false.bp_is_my_profile() : boolean
Will return true for any subpage of the logged-in user's profile, eg http://example.com/members/joe/friends/.
package | BuddyPress |
---|---|
since | 1.2.0 |
boolean
True if the current page is part of the profile of the logged-in user.bp_is_network_activated() : boolean
Used to determine admin menu placement, and where settings and options are stored. If you're being really clever and manually pulling BuddyPress in with an mu-plugin or some other method, you'll want to filter 'bp_is_network_activated' and override the auto-determined value.
package | BuddyPress |
---|---|
since | 1.7.0 |
boolean
True if BuddyPress is network activated.bp_is_notices() : boolean
bp_is_notifications_component() : boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
boolean
True if the current page is part of the Notifications component.bp_is_page(string $page = ''
) : boolean
package | BuddyPress |
---|---|
deprecated | 1.7.0 |
string
boolean
True if is BuddyPress pagebp_is_post_request() : boolean
bp_is_profile_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Profile component.bp_is_profile_edit()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
bp_is_register_page() : boolean
bp_is_root_blog(integer $blog_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
Optional. Default: the ID of the current blog.
boolean
$is_root_blog Returns true if this is bp_get_root_blog_id().bp_is_root_component(string $component_name = ''
) : boolean
This function is on the chopping block. It's currently only used by a few already deprecated functions.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
Component name to check.
boolean
True if root component, else false.bp_is_running_from_src_subdirectory() : boolean
package | BuddyPress |
---|---|
since | 15.0.0 |
boolean
True if BuddyPress was loaded from the `src` subdirectory, false otherwise.bp_is_running_wp(string $version, string $compare = '>='
) : boolean
package | BuddyPress |
---|---|
since | 7.0.0 |
string
WP version, in "PHP-standardized" format.
string
Optional. Comparison operator. Default '>='.
boolean
bp_is_settings_component() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of the Settings component.bp_is_single(string $component, string $callback) : boolean
package | BuddyPress |
---|
string
Current component to check for.
string
Callback to invoke.
boolean
bp_is_single_activity() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a single activity item permalink.bp_is_single_item() : boolean
bp_is_site_home() : boolean
package | BuddyPress |
---|---|
since | 12.1.0 |
boolean
True if the requested URL is site home's one. False otherwise.bp_is_template_included() : boolean
bp_is_theme_compat_active() : boolean
bp_is_theme_compat_original_template(string $template = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The template name to check.
boolean
True if the value of $template is the same as the
"original_template" originally selected by WP. Otherwise, false.bp_is_update() : boolean
Determined by comparing the registered BuddyPress version to the version number stored in the database. If the registered version is greater, it's an update.
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
True if update, otherwise false.bp_is_user() : boolean
Will return true anytime there is a displayed user.
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user page.bp_is_user_active(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
Optional. The user ID to check.
boolean
True if active, otherwise false.bp_is_user_activity() : boolean
Eg http://example.com/members/joe/activity/ (or any subpages thereof).
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's activity stream page.bp_is_user_blogs() : boolean
Eg http://example.com/members/joe/blogs/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Blogs page.bp_is_user_change_avatar() : boolean
Eg http://example.com/members/joe/profile/change-avatar/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is the user's avatar edit page.bp_is_user_change_cover_image() : boolean
Eg http://example.com/members/joe/profile/change-cover-image/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 2.4.0 |
boolean
True if the current page is a user's profile edit cover image page.bp_is_user_deleted(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
The ID for the user.
boolean
True if deleted, otherwise false.bp_is_user_forums() : false
Eg http://example.com/members/joe/forums/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 3.0.0 No longer used in core, but supported for third-party code. |
false
bp_is_user_friend_requests() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's Friends Requests page.bp_is_user_friends() : boolean
Eg http://example.com/members/joe/blogs/friends/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Friends page.bp_is_user_friends_activity() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Friends activity stream.bp_is_user_front() : boolean
Will return true anytime there is a custom front page for the displayed user.
package | BuddyPress |
---|---|
since | 2.6.0 |
boolean
True if the current page is a user custom front page.bp_is_user_groups() : boolean
Eg http://example.com/members/joe/groups/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Groups page.bp_is_user_groups_activity() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's Groups activity stream.bp_is_user_inactive(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
integer
Optional. The user ID to check.
boolean
True if inactive, otherwise false.bp_is_user_members_invitations() : boolean
Eg http://example.com/members/cassie/invitations/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
True if the current page is a user's community invitations page.bp_is_user_members_invitations_list() : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
True if the current page is a user's List Invites page.bp_is_user_members_invitations_send_screen() : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
True if the current page is a user's Send Invites page.bp_is_user_notifications() : boolean
Eg http://example.com/members/joe/notifications/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.9.0 |
boolean
True if the current page is a user's Notifications page.bp_is_user_profile() : boolean
Eg http://example.com/members/joe/profile/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is part of a user's extended profile.bp_is_user_profile_edit() : boolean
Eg http://example.com/members/joe/profile/edit/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's profile edit page.bp_is_user_recent_commments() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Recent Blog Comments page.bp_is_user_recent_posts() : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
boolean
True if the current page is a user's Recent Blog Posts page.bp_is_user_settings() : boolean
Eg http://example.com/members/joe/settings/ (or a subpage thereof).
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's Settings page.bp_is_user_settings_account_delete() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's Delete Account page.bp_is_user_settings_general() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's General Settings page.bp_is_user_settings_notifications() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
True if the current page is a user's Notification Settings page.bp_is_user_settings_profile() : boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
boolean
True if the current page is a user's Profile Settings page.bp_is_user_spammer(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
global | BP_Core_Members_Template $members_template The Members template loop class. |
integer
The ID for the user.
boolean
True if spammer, otherwise false.bp_is_username_compatibility_mode() : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
todo | Move to members component? |
boolean
False when compatibility mode is disabled, true when enabled.
Default: false.bp_last_activity(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.0.0 |
see | for a description of parameters. |
integer
See {@link bp_get_last_activity()}.
bp_last_activity_migrate() : boolean
Generally, this function is only run when BP is upgraded to 2.0. It can also be called directly from the BuddyPress Tools panel.
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
boolean
bp_late_include()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_legacy_groups_admin_screen_hidden_input() : string | null
bp_legacy_theme_activity_template_loader() : string | null
package | BuddyPress |
---|---|
since | 1.2.0 |
string
null
JSON object containing 'contents' (output of the template loop
for the Activity component) and 'feed_url' (URL to the relevant RSS feed).bp_legacy_theme_ajax_accept_friendship()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_legacy_theme_ajax_addremove_friend() : string | null
bp_legacy_theme_ajax_close_notice()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_legacy_theme_ajax_invite_user()
package | BuddyPress |
---|---|
since | 1.2.0 |
todo | Audit return types |
bp_legacy_theme_ajax_joinleave_group() : string | null
bp_legacy_theme_ajax_querystring(string $query_string, string $object) : string
The following function will take into account any cookies set in the JS and allow us to override the parameters sent. That way we can change the results returned without reloading the page.
By using cookies we can also make sure that user settings are retained across page loads.
package | BuddyPress |
---|---|
since | 1.2.0 |
string
Query string for the current request.
string
Object for cookie.
string
Query string for the component loops.bp_legacy_theme_ajax_reject_friendship()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_legacy_theme_blog_create_nav()
The bp-legacy puts the Create a Site nav at the last position of the Sites directory navigation.
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_legacy_theme_cover_image(array $params = array()
) : null | string
package | BuddyPress |
---|---|
since | 2.4.0 |
array
the current component's feature parameters.
null
string
An array to inform about the css handle to attach the css rules tobp_legacy_theme_delete_activity()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_legacy_theme_delete_activity_comment()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_legacy_theme_get_single_activity_content() : string | null
Used for the 'Read More' link on long activity items.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
null
HTMLbp_legacy_theme_group_create_nav()
The bp-legacy puts the Create a Group nav at the last position of the Groups directory navigation.
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_legacy_theme_group_manage_members_add_search() : string | null
bp_legacy_theme_invite_template_loader()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_legacy_theme_mark_activity_favorite() : string | null
bp_legacy_theme_new_activity_comment() : string | null
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
null
HTMLbp_legacy_theme_object_template_loader() : string | null
bp_legacy_theme_post_update() : string | null
bp_legacy_theme_requests_template_loader()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_legacy_theme_spam_activity()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_legacy_theme_unmark_activity_favorite() : string | null
bp_live_spammer_login_error()
package | BuddyPress |
---|---|
since | 1.8.0 |
global | string $error The error message. |
bp_load_custom_script_translation_file(string|false $file, string $handle, string $domain) : string
package | BuddyPress |
---|---|
since | 14.0.0 |
string
false
Path to the translation file to load. False if there isn't one.
string
Name of the script to register a translation domain to.
string
The text domain.
string
Path to the translation file to load.bp_load_custom_translation_file(string $file, string $domain, string $locale = ''
) : string
package | BuddyPress |
---|---|
since | 14.0.0 |
string
Absolut path to the translation file to use.
string
The text domain to check against buddypress
.
string
The current locale for the WordPress site.
string
Absolut path to the translation file to use.bp_load_theme_functions()
package | BuddyPress |
---|---|
since | 1.7.0 |
global | string $pagenow The current page being loaded. |
global | WP_Query $wp_query The WordPress Query object. |
bp_loaded()
Attached to 'plugins_loaded'.
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_locate_template(string|array $template_names, boolean $load= false
, boolean $require_once= true
, array $args= array()
) : string
Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which inherit from a parent theme can just overload one file. If the template is not found in either of those, it looks in the theme-compat folder last.
package | BuddyPress |
---|---|
since | 1.7.0 |
since | 7.0.0 Added `$args` parameter. |
string
array
Template file(s) to search for, in order.
boolean
Optional. If true, the template file will be loaded when found. If false, the path will be returned. Default: false.
boolean
Optional. Whether to require_once or require. Has no effect if $load is false. Default: true.
array
Optional. Extra args to pass to locate_template().
string
The template filename if one is located.bp_locate_template_asset(string $filename) : false | array
Similar to bp_locate_template(), but for files like CSS and JS.
package | BuddyPress |
---|---|
since | 2.6.0 |
string
Relative filename to search for.
false
array
Array of asset data if one is located (includes absolute filepath and URI).
Boolean false on failure.bp_log_out_link()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Use wp_logout_url() |
since | 1.0.0 |
bp_loggedin_user_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for a description of params. |
array
string
{@see bp_get_loggedin_user_avatar()}.
bp_loggedin_user_domain() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 12.0.0 This function is now an alias of `bp_loggedin_user_url()`. You should only use it to get the "home" URL of the logged-in user's profile page. If you need to build an URL to reach another page, we strongly advise you to use `bp_loggedin_user_url()`. |
todo | Deprecating this function would be safer. |
string
bp_loggedin_user_fullname()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_loggedin_user_id() : integer
bp_loggedin_user_link($chunks = array()
)
bp_loggedin_user_url(array $path_chunks = array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
array
{ An array of arguments. Optional.
@type string $single_item_component The component slug the action is relative to.
@type string $single_item_action The slug of the action to perform.
@type array $single_item_action_variables An array of additional informations about the action to perform.
}
string
The logged-in user's profile URL.bp_loggedin_user_username()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_loggedinuser_link()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | use bp_loggedin_user_link() |
bp_login_redirect(string $redirect_to= ''
, string $redirect_to_raw= ''
, boolean $user= false
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
string
See 'login_redirect'.
string
See 'login_redirect'.
boolean
See 'login_redirect'.
string
bp_login_redirector()
If a link is not publicly available, we can send members from external locations, like following links in an email, through the login screen.
If a user clicks on this link and is already logged in, we should attempt to redirect the user to the authorized content instead of forcing the user to re-authenticate.
package | BuddyPress |
---|---|
since | 2.9.0 |
bp_maintenance_mode()
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 1.7.0 |
bp_major_version(string $version = ''
)
bp_maybe_load_mentions_scripts_for_blog_content(boolean $load_mentions, boolean $mentions_enabled) : boolean
package | BuddyPress |
---|---|
since | 2.2.0 |
boolean
True to load mentions assets, false otherwise.
boolean
True if mentions are enabled.
boolean
True if mentions scripts should be loaded.bp_member_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of arguments. |
array
string
See {@link bp_get_member_avatar()}.
bp_member_class(array $classes = array()
)
bp_member_hidden_fields()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_member_is_loggedin_user() : boolean
package | BuddyPress |
---|---|
since | 1.2.5 |
since | 10.0.0 Updated to get member ID from `bp_get_member_user_id`. |
boolean
bp_member_last_active(array $args = array()
)
bp_member_latest_update(array|string $args = ''
)
bp_member_permalink()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_member_profile_data(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for a description of params. |
array
string
See {@link bp_get_member_profile_data()}.
bp_member_random_profile_data()
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 10.0.0 Updated to get member ID using `bp_get_member_user_id`. |
bp_member_registered(array $args = array()
)
package | BuddyPress |
---|---|
since | 1.2.0 |
since | 2.7.0 Added $args as a parameter. |
array
Optional. {@see bp_get_member_registered()}.
bp_member_total_friend_count()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_member_type_directory_link(string $member_type = ''
)
package | BuddyPress |
---|---|
since | 7.0.0 |
string
Unique member type identifier as used in bp_register_member_type().
bp_member_type_directory_permalink(string $member_type = ''
)
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Optional. Member type. Defaults to current member type.
bp_member_type_list(integer $user_id= 0
, array $r= array()
)
package | BuddyPress |
---|---|
since | 7.0.0 |
see | For additional information on default arguments. |
integer
User ID.
array
Optional. Member type list arguments. Default empty array.
bp_member_type_tax_name()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_member_user_email()
package | BuddyPress |
---|---|
since | 1.2.5 |
bp_member_user_nicename()
package | BuddyPress |
---|---|
since | 1.2.5 |
bp_members() : boolean
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
boolean
bp_members_action_activate_account()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_members_action_delete_avatar()
The function will delete the active avatar for a user.
package | BuddyPress |
---|---|
since | 6.0.0 |
bp_members_add_role_after_activation(integer $user_id)
bp_members_admin_format_xprofile_field_for_display(string|array $value)
Operates recursively on arrays, which are then imploded with commas.
package | BuddyPress |
---|---|
since | 10.0.0 |
string
array
Field value.
bp_members_admin_preview_signup_profile_info(array $signup_field_labels= array()
, object|null $signup_object= null
)
package | BuddyPress |
---|---|
since | 10.0.0 |
array
The Signup field labels.
object
null
The signup data object.
bp_members_avatar_upload_dir(string $directory= 'avatars'
, integer $user_id= 0
) : array
package | BuddyPress |
---|---|
since | 6.0.0 |
string
The root directory name. Optional.
integer
The user ID. Optional.
array
Array containing the path, URL, and other helpful settings.bp_members_blocks_add_script_data()
Only used for the BP Dynamic Members block.
package | BuddyPress |
---|---|
since | 9.0.0 |
bp_members_clear_member_type_cache(integer $user_id)
Called when the user is deleted or marked as spam.
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
ID of the deleted user.
bp_members_component_link(string $component, string $action= ''
, string $query_args= ''
, string|boolean $nonce= false
)
package | BuddyPress |
---|---|
since | 1.5.0 |
see | for description of parameters. |
string
See {@bp_get_members_component_link()}.
string
See {@bp_get_members_component_link()}.
string
See {@bp_get_members_component_link()}.
string
boolean
See {@bp_get_members_component_link()}.
bp_members_delete_signup_cache(integer $signup_id = 0
)
bp_members_delete_signup_cache_multiples(array $signup_ids = array()
)
bp_members_edit_profile_url(string $url, integer $user_id, string $scheme = 'admin'
) : string
package | BuddyPress |
---|---|
since | 1.6.0 |
string
WP profile edit URL.
integer
ID of the user.
string
Scheme to use.
string
bp_members_filter_user_query_populate_extras_friend_count_latest_update(\BP_User_Query $user_query, string $user_ids_sql)
package | BuddyPress |
---|---|
since | 15.0.0 |
global | wpdb $wpdb WordPress database object. |
\BP_User_Query
The BP_User_Query object.
string
Comma-separated list of user IDs to fetch extra data for, as determined by BP_User_Query.
bp_members_filter_user_query_populate_extras_last_activity(\BP_User_Query $user_query)
bp_members_format_activity_action_new_avatar(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
string
Static activity action.
object
Activity object.
string
bp_members_format_activity_action_new_member(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.2.0 |
string
Static activity action.
object
Activity object.
string
$actionbp_members_get_path_chunks(array $chunks = array()
) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
array
An array of BP URL default slugs.
array
An associative array containing member's customized path chunks.bp_members_get_signup_by(string $field= 'activation_key'
, string $value= ''
) : boolean | \BP_Signup
package | BuddyPress |
---|---|
since | 10.0.0 |
string
Which fields to search by. Possible values are activation_key, user_email, id.
string
Value to search by.
boolean
\BP_Signup
$signup Found signup, returns first found
if more than one is found.bp_members_get_user_nicename(integer $user_id) : string
This should be used for linking to user profiles and anywhere else a sanitized and unique slug to a user is needed.
package | BuddyPress |
---|---|
since | 1.5.0 |
integer
User ID to check.
string
The username of the matched user or an empty string if no user is found.bp_members_get_user_slug(integer $user_id = 0
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
integer
The User ID.
string
The member slug.bp_members_get_user_url(integer $user_id= 0
, array $path_chunks= array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
integer
The user ID.
array
{ An array of arguments. Optional.
@type string $single_item_component The component slug the action is relative to.
@type string $single_item_action The slug of the action to perform.
@type array $single_item_action_variables An array of additional informations about the action to perform.
}
string
The URL built for the BP Rewrites URL parser.bp_members_has_directory() : boolean
bp_members_invitation_resend_by_id(integer $id = 0
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
ID of the invitation to resend.
boolean
bp_members_invitations_accepted_invitation_notification(\BP_Invitation $invite, \WP_user $new_user, integer $inviter_id)
package | BuddyPress |
---|---|
since | 8.0.0 |
\BP_Invitation
Invitation that was accepted.
\WP_user
User who accepted the membership invite.
integer
ID of the user who invited this user to the site.
bp_members_invitations_action_bulk_manage() : boolean
bp_members_invitations_bulk_management_dropdown()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_members_invitations_cancel_activation_email(boolean $send, integer $user_id= 0
, string $user_email= ''
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
Whether or not to send the activation key.
integer
User ID to send activation key to.
string
User email to send activation key to.
boolean
Whether or not to send the activation key.bp_members_invitations_complete_signup(boolean|\WP_Error $user_id)
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
\WP_Error
True on success, WP_Error on failure.
bp_members_invitations_delete_by_id(integer $id = 0
) : integer | boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
ID of the invitation to delete.
integer
boolean
Number of rows deleted on success, false on failure.bp_members_invitations_delete_invites(\intring $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
\intring
{ Array of arguments. @type int|array $id Id(s) of the invitation(s) to remove. @type int $invitee_email Email address of the user being invited. @type int $network_id ID of the network to which the user is being invited. @type int $inviter_id ID of the inviting user. @type int $accepted Whether the invitation has been accepted yet. @type int $invite_sent Whether the invitation has been sent yet. }
boolean
True if all were deleted.bp_members_invitations_delete_optedout_invites(\BP_Optout $optout)
package | BuddyPress |
---|---|
since | 8.0.0 |
\BP_Optout
Characteristics of the opt-out just saved.
bp_members_invitations_get_hash(\BP_Invitation $invitation) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
\BP_Invitation
Invitation to create hash from.
string
$hash Calculated sha1 hash.bp_members_invitations_get_invites(array $args = array()
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
array
Invitation arguments. See BP_Invitation::get() for list.
array
$invites Matching BP_Invitation objects.bp_members_invitations_invite_user(array|string $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
array
string
{ Array of arguments. @type int $invitee_email Email address of the user being invited. @type int $network_id ID of the network to which the user is being invited. @type int $inviter_id Optional. ID of the inviting user. Default: ID of the logged-in user. @type string $date_modified Optional. Modified date for the invitation. Default: current date/time. @type string $content Optional. Message to invitee. @type bool $send_invite Optional. Whether the invitation should be sent now. Default: false. }
boolean
bp_members_invitations_list_invites_permalink(integer $user_id = 0
)
bp_members_invitations_make_registration_email_input_readonly_if_invite(array $attributes, string $name) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
array
The field attributes.
string
The field name.
array
$attributes The field attributes.bp_members_invitations_maybe_bypass_request_approval(boolean $send, array $details)
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
Whether or not this membership request should be approved
immediately and the activation email sent.
Default is false
meaning that the request should be
manually approved by a site admin.
array
The details of the request.
bp_members_invitations_pagination_count()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_members_invitations_pagination_links()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_members_invitations_send_invites_permalink(integer $user_id = 0
)
bp_members_invitations_slug()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_members_invitations_user_can_view_screens()
Referred to by BP_Members_Invitations_Component::register_nav().
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_members_invitations_user_can_view_send_screen()
Referred to by BP_Members_Invitations_Component::register_nav().
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_members_invitations_user_has_sent_invites(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
ID of user to check for invitations sent by. Defaults to the current user's ID.
boolean
$invites True if user has sent invites.bp_members_is_community_profile_enabled() : boolean
bp_members_login_resend_activation_email()
package | BuddyPress |
---|---|
since | 2.0.0 |
since | 15.0.0 Return an error when the activation email resend has been blocked temporarily. |
global | string $error The error message. |
see |
bp_members_mark_read_accepted_invitation_notification()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_members_mark_read_submitted_membership_request_notification()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_members_membership_requests_add_link_wp_login(string $link) : string
package | BuddyPress |
---|---|
since | 10.0.0 |
string
HTML link to the home URL of the current site.
string
HTML link to the home URL of the current site and the one to request a membership.bp_members_membership_requests_cancel_activation_email(boolean $send, integer $user_id= 0
, string $user_email= ''
, string $activation_key= ''
, array $usermeta= array()
) : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
Whether or not to send the activation key.
integer
User ID to send activation key to.
string
User email to send activation key to.
string
Activation key to be sent.
array
Miscellaneous metadata about the user (blog-specific signup data, xprofile data, etc).
boolean
Whether or not to send the activation key.bp_members_membership_requests_cancel_activation_email_multisite(boolean $send= true
, string $user_login= ''
, string $user_email= ''
, string $activation_key= ''
, boolean $is_signup_resend= false
) : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
boolean
Whether or not to send the activation key.
string
User login name.
string
User email address.
string
Activation key created in wpmu_signup_user().
boolean
Is the site admin sending this email?
boolean
Whether or not to send the activation key.bp_members_membership_requests_delete_notifications_on_change(array $signup_ids)
bp_members_membership_requests_filter_signup_bulk_actions(array $actions) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
array
Array of actions and corresponding links.
array
List of actions and corresponding links.bp_members_membership_requests_filter_signup_row_actions(array $actions, object $signup_object)
package | BuddyPress |
---|---|
since | 10.0.0 |
array
Array of actions and corresponding links.
object
The signup data object.
bp_members_membership_requests_filter_signup_table_date_sent_header(array $columns) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
array
Array of columns to display.
array
List of columns to display.bp_members_membership_requests_notify_site_admins(\BP_Signup $signup)
package | BuddyPress |
---|---|
since | 10.0.0 |
\BP_Signup
The signup object that has been created.
bp_members_membership_requests_send_rejection_mail(array $signup_ids)
bp_members_migrate_signups()
package | BuddyPress |
---|---|
since | 2.0.1 |
global | wpdb $wpdb WordPress database object. |
bp_members_new_avatar_activity(integer $user_id= 0
, string $type= ''
, array $crop_data= array()
, array $cropped_avatar= array()
)
package | BuddyPress |
---|---|
since | 8.0.0 |
since | 10.0.0 Adds the `$type`, `$crop_data` and `$cropped_avatar` parameters. |
integer
The user id the avatar was set for.
string
The way the avatar was set ('camera' or crop
).
array
Array of parameters passed to the crop handler.
array
Array containing the full, thumb avatar and the timestamp.
bp_members_prefetch_member_type(\BP_User_Query $bp_user_query)
bp_members_register_activity_actions()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_members_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 9.0.0 |
since | 12.0.0 Uses the `@wordpress/scripts` `index.asset.php` generated file to get dependencies. |
array
Data about the scripts to register.
array
Data about the scripts to register.bp_members_remove_previous_avatar_activity(integer $user_id= 0
, integer $timestamp= 0
) : boolean
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
The user ID.
integer
The timestamp when the activity was created.
boolean
False otherwise.bp_members_render_active_members_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_members_render_dynamic_members_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_members_render_member_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 6.0.0 |
array
The block attributes.
string
HTML output.bp_members_render_members_avatars_block(array $block_args = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
{ Optional. An array of Block arguments.
@type string $title The title of the Block.
@type int $maxMembers The maximum number of members to show. Defaults to 0
.
@type string $noMembers The string to output when there are no members to show.
@type string $classname The name of the CSS class to use.
@type string $type The type of filter to perform. Possible values are online
, active
,
newest
, alphabetical
, random
or popular
.
}
string
HTML output.bp_members_render_members_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
array
The block attributes.
string
HTML output.bp_members_render_online_members_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_members_reset_activity_cache_incrementor()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_members_reset_signup_cache_incrementor()
This function invalidates all cached results of BP_Signup queries, whenever one of the following events takes place:
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_members_sanitize_invitation_property(integer|string $value= ''
, string $property= ''
, string $context= 'html'
) : integer | string
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
string
The value for the requested property.
string
The name of the requested property.
string
Optional. The context of display.
integer
string
The sanitized value.bp_members_screen_change_avatar()
package | BuddyPress |
---|---|
since | 6.0.0 |
bp_members_screen_change_cover_image()
package | BuddyPress |
---|---|
since | 6.0.0 |
bp_members_screen_display_profile()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_members_screen_index()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_members_signup_sanitization()
These are used to prevent XSS in the BuddyPress sign-up process. You can unhook these to allow for customization of your registration fields; however, it is highly recommended that you leave these in place for the safety of your network.
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_members_signup_with_subdirectory_blog(array $illegal_names = array()
) : array
If BP_ENABLE_ROOT_PROFILES is defined & multisite config is set to subdirectories, then there is a chance site.url/username == site.url/blogslug. If so, user's profile is not reachable, instead the blog is displayed. This filter makes sure the signup username is not the same than the blog slug for this particular config.
package | BuddyPress |
---|---|
since | 2.1.0 |
array
Array of illiegal names.
array
$illegal_namesbp_members_site_requests_enabled() : boolean
bp_members_type_admin_type_exists(boolean $exists= false
, string $type_id= ''
) : boolean
package | BuddyPress |
---|---|
since | 7.0.0 |
boolean
True if the member type already exists. False otherwise.
string
The member type identifier.
boolean
True if the member type already exists. False otherwise.bp_members_user_can_filter(boolean $retval, integer $user_id, string $capability, integer $site_id, array $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
Whether or not the current user has the capability.
integer
User ID.
string
The capability being checked for.
integer
Site ID. Defaults to the BP root blog.
array
Array of extra arguments passed.
boolean
bp_members_user_pass_required_strength() : integer
Score => Allowed Strength. 0 => any passwords. 1 => at least short passwords. 2 => at least weak passwords. 3 => at least good passwords. 4 => at least strong passwords.
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
the strength score a password needs to have to be used by a member.bp_members_validate_user_password(string $pass, string $confirm_pass, null|\WP_User $userdata = null
) : \WP_Error
package | BuddyPress |
---|---|
since | 7.0.0 |
string
The password.
string
The confirmed password.
null
\WP_User
Null or the userdata object when a member updates their password from front-end.
\WP_Error
A WP error object possibly containing error messages.bp_mentioned_user_display_name(integer|string|boolean $user_id_or_username = false
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of parameters. |
integer
string
boolean
See {@link bp_get_mentioned_user_display_name()}.
bp_migrate_directory_page_titles()
As of 2.7.0, component directory titles come from the post_title
attribute of the corresponding WP post object,
instead of being hardcoded. To ensure that directory titles don't change for existing installations, we update these
WP posts with the formerly hardcoded titles.
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_migrate_new_member_activity_component()
package | BuddyPress |
---|---|
since | 2.2.0 |
global | wpdb $wpdb WordPress database object. |
bp_modify_document_title_parts(array $title = array()
) : array
package | BuddyPress |
---|---|
since | 2.4.3 |
array
The WordPress document title parts.
array
the unchanged title parts or the BuddyPress onesbp_modify_page_title(string $title= ''
, string $sep= '»'
, string $seplocation= 'right'
) : string
package | BuddyPress |
---|---|
since | 1.5.0 |
see |
string
Original page title.
string
How to separate the various items within the page title.
string
Direction to display title.
string
New page title.bp_new_group_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | For more information on accepted arguments |
array
string
See bp_core_fetch_avatar().
bp_new_group_enable_forum()
package | BuddyPress |
---|---|
todo | deprecate |
since | 1.1.0 |
bp_new_group_invite_friend_list(array $args = array()
)
bp_new_site(integer $blog_id, integer $user_id, string $domain, string $path, integer $site_id, array $meta)
package | BuddyPress |
---|---|
since | 1.7.0 |
integer
ID of the blog being installed to.
integer
ID of the user the install is for.
string
Domain to use with the install.
string
Path to use with the install.
integer
ID of the site being installed to.
array
Metadata to use with the site creation.
bp_notifications_action_bulk_manage()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_notifications_action_delete() : boolean
bp_notifications_action_mark_read()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_action_mark_unread()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_add_notification(array $args = array()
) : integer | boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
array
{ Array of arguments describing the notification. All are optional. @type int $user_id ID of the user to associate the notification with. @type int $item_id ID of the item to associate the notification with. @type int $secondary_item_id ID of the secondary item to associate the notification with. @type string $component_name Name of the component to associate the notification with. @type string $component_action Name of the action to associate the notification with. @type string $date_notified Timestamp for the notification. }
integer
boolean
ID of the newly created notification on success, false on failure.bp_notifications_bulk_management_dropdown()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_notifications_check_notification_access(integer $user_id, integer $notification_id) : boolean
Used before deleting a notification for a user.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user being checked.
integer
ID of the notification being checked.
boolean
True if the notification belongs to the user, otherwise false.bp_notifications_clear_all_for_user_cache(integer $user_id = 0
)
bp_notifications_clear_all_for_user_cache_after_save(\BP_Notifications_Notification $notification)
package | BuddyPress |
---|---|
since | 2.0.0 |
\BP_Notifications_Notification
Notification object.
bp_notifications_clear_all_for_user_cache_before_delete(integer $args)
bp_notifications_clear_all_for_user_cache_before_update(array $update_args, array $where_args)
package | BuddyPress |
---|---|
since | 2.3.0 |
array
See BP_Notifications_Notification::update() for description.
array
See BP_Notifications_Notification::update() for description.
bp_notifications_delete_all_notifications_by_type(integer $item_id, string $component_name, string|boolean $component_action= false
, integer|boolean $secondary_item_id= false
) : integer | false
Used when clearing out notifications for an entire component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
string
Name of the associated component.
string
boolean
Optional. Name of the associated action.
integer
boolean
Optional. ID of the secondary associated item.
integer
false
True on success, false on failure.bp_notifications_delete_notification(integer $id) : false | integer
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the notification to delete.
false
integer
Integer on success, false on failure.bp_notifications_delete_notifications_by_ids(array<mixed,integer> $ids) : integer | false
package | BuddyPress |
---|---|
since | 10.0.0 |
array<mixed,integer>
IDs of the associated notifications.
integer
false
The number of rows updated. False on error.bp_notifications_delete_notifications_by_item_id(integer $user_id, integer $item_id, string $component_name, string $component_action, integer|boolean $secondary_item_id = false
) : integer | false
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
integer
ID of the associated item.
string
Name of the associated component.
string
Name of the associated action.
integer
boolean
ID of the secondary associated item.
integer
false
True on success, false on failure.bp_notifications_delete_notifications_by_item_ids(integer $user_id, array<mixed,integer> $item_ids, string $component_name, string $component_action) : integer | false
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
ID of the user whose notifications are being deleted.
array<mixed,integer>
IDs of the associated items.
string
Name of the associated component.
string
Name of the associated action.
integer
false
The number of rows updated. False on error.bp_notifications_delete_notifications_by_type(integer $user_id, string $component_name, string $component_action) : integer | false
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
string
Name of the associated component.
string
Name of the associated action.
integer
false
True on success, false on failure.bp_notifications_delete_notifications_from_user(integer $user_id, string $component_name, string $component_action) : integer | false
Used when clearing out all notifications for a user, when deleted or spammed.
package | BuddyPress |
---|---|
todo | This function assumes that items with the user_id in the item_id slot are associated with that user. However, this will only be true with certain components (such as Friends). Use with caution! |
since | 1.9.0 |
integer
ID of the user whose associated items are being deleted.
string
Name of the associated component.
string
Name of the associated action.
integer
false
True on success, false on failure.bp_notifications_delete_notifications_on_delete_user(integer $user_id)
bp_notifications_delete_notifications_on_user_delete(integer $user_id) : integer | false
package | BuddyPress |
---|---|
since | 2.5.0 |
integer
ID of the user who is about to be deleted.
integer
false
The number of rows deleted, or false on error.bp_notifications_get_all_notifications_for_user(integer $user_id = 0
) : array
package | BuddyPress |
---|---|
since | 2.1.0 |
integer
ID of the user whose notifications are being fetched.
array
$notifications Array of notifications for user.bp_notifications_get_grouped_notifications_for_user(integer $user_id = 0
) : array
This function returns a list of notifications collapsed by component + action. See BP_Notifications_Notification::get_grouped_notifications_for_user() for more details.
package | BuddyPress |
---|---|
since | 3.0.0 |
integer
ID of the user whose notifications are being fetched.
array
$notificationsbp_notifications_get_notification(integer $id) : \BP_Notifications_Notification
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the notification.
\BP_Notifications_Notification
Notification object for ID specified.bp_notifications_get_notifications_for_user(integer $user_id, string $format = 'string'
) : mixed
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being fetched.
string
Format of the returned values. 'string' returns HTML, while 'object' returns a structured object for parsing.
mixed
Object or array on success, false on failure.bp_notifications_get_registered_components() : array
bp_notifications_get_unread_notification_count(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose unread notifications are being counted.
integer
Unread notification count.bp_notifications_mark_all_notifications_by_type(integer $item_id, string $component_name, string|boolean $component_action= false
, integer|boolean $secondary_item_id= false
, integer|boolean $is_new= false
) : integer | false
Used when clearing out notifications for an entire component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
string
Name of the associated component.
string
boolean
Optional. Name of the associated action.
integer
boolean
Optional. ID of the secondary associated item.
integer
boolean
0 for read, 1 for unread.
integer
false
True on success, false on failure.bp_notifications_mark_notification(integer $id, integer|boolean $is_new = false
) : false | integer
Used when clearing out notifications for a specific notification item.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the notification.
integer
boolean
0 for read, 1 for unread.
false
integer
Number of rows updated on success, false on failure.bp_notifications_mark_notifications_by_ids(array<mixed,integer> $ids, integer|false $is_new = false
) : integer | false
package | BuddyPress |
---|---|
since | 10.0.0 |
array<mixed,integer>
IDs of the associated notification items.
integer
false
0 for read, 1 for unread.
integer
false
The number of rows updated. False on error.bp_notifications_mark_notifications_by_item_id(integer $user_id, integer $item_id, string $component_name, string $component_action, integer|boolean $secondary_item_id= false
, integer|boolean $is_new= false
) : integer | false
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
integer
ID of the associated item.
string
Name of the associated component.
string
Name of the associated action.
integer
boolean
ID of the secondary associated item.
integer
boolean
0 for read, 1 for unread.
integer
false
True on success, false on failure.bp_notifications_mark_notifications_by_item_ids(integer $user_id, array<mixed,integer> $item_ids, string $component_name, string $component_action, integer|false $is_new = false
) : integer | false
package | BuddyPress |
---|---|
since | 10.0.0 |
integer
ID of the user whose notifications are being deleted.
array<mixed,integer>
IDs of the associated items.
string
Name of the associated component.
string
Name of the associated action.
integer
false
0 for read, 1 for unread.
integer
false
The number of rows updated. False on error.bp_notifications_mark_notifications_by_type(integer $user_id, string $component_name, string $component_action, integer|boolean $is_new = false
) : integer | false
Used when clearing out notifications for a specific component when the user has visited that component.
package | BuddyPress |
---|---|
since | 1.9.0 |
integer
ID of the user whose notifications are being deleted.
string
Name of the associated component.
string
Name of the associated action.
integer
boolean
0 for read, 1 for unread.
integer
false
True on success, false on failure.bp_notifications_mark_notifications_from_user(integer $user_id, string $component_name, string $component_action, integer|boolean $is_new = false
) : integer | false
Used when clearing out all notifications for a user, when deleted or spammed.
package | BuddyPress |
---|---|
todo | This function assumes that items with the user_id in the item_id slot are associated with that user. However, this will only be true with certain components (such as Friends). Use with caution! |
since | 1.9.0 |
integer
ID of the user whose associated items are being deleted.
string
Name of the associated component.
string
Name of the associated action.
integer
boolean
0 for read, 1 for unread.
integer
false
True on success, false on failure.bp_notifications_pagination_count()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_pagination_links()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_permalink(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_notifications_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The users email address.
integer
Batch number.
array
An array of personal data.bp_notifications_read_permalink(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_notifications_screen_read()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_screen_settings()
This is currently unused.
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_screen_unread()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_sort_order_form()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_notifications_unread_permalink(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_nouveau() : \BP_Nouveau
bp_nouveau_activation_hook(string $when= ''
, $suffix= ''
)
bp_nouveau_activity($bp_nouveau = null
)
bp_nouveau_activity_comment_action()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_activity_comment_data_attribute_id()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_activity_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_activity_customizer_controls(array $controls = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The controls to add.
array
the controls to add.bp_nouveau_activity_data_attribute_id()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_nouveau_activity_excerpt_append_text(string $read_more = ''
) : string
package | BuddyPress |
---|---|
since | 7.0.0 |
string
The read more text.
string
The read more text without brackets.bp_nouveau_activity_get_rss_link() : string
bp_nouveau_activity_get_rss_screen_reader_text() : string
bp_nouveau_activity_get_rss_tooltip() : string
bp_nouveau_activity_has_content() : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
True if the activity has some content. False Otherwise.bp_nouveau_activity_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_activity_localize_scripts(array $params = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Associative array containing the JS Strings needed by scripts.
array
The same array with specific strings for the Activity Post form UI if needed.bp_nouveau_activity_member_post_form() : string
bp_nouveau_activity_notification_filters()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_activity_print_post_form_templates()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_nouveau_activity_recurse_comments(object $comment)
Note: This is an adaptation of the bp_activity_recurse_comments() BuddyPress core function
package | BuddyPress |
---|---|
since | 3.0.0 |
object
The activity object currently being recursed.
bp_nouveau_activity_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The array of scripts to register.
array
The same array with the specific activity scripts.bp_nouveau_activity_rss_screen_reader_text()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_nouveau_activity_scope_newest_class($classes = ''
)
bp_nouveau_activity_secondary_avatars($action, $activity)
bp_nouveau_add_notice_notification_for_user(false|array $notifications, integer $user_id) : false | array
package | BuddyPress |
---|---|
since | 3.0.0 |
false
array
False if there are no items, an array of notification items otherwise.
integer
The user ID.
false
array
False if there are no items, an array of notification items otherwise.bp_nouveau_add_notify_group_members_checkbox()
See #7837 for background on why this technique is required.
package | BuddyPress |
---|---|
since | 4.0.0 |
bp_nouveau_after_activity_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_after_activity_post_form()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_after_blogs_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_after_directory_page()
package | BuddyPress |
---|---|
since | 6.0.0 |
bp_nouveau_after_groups_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_after_loop()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_after_members_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_ajax_addremove_friend() : string
bp_nouveau_ajax_clear_new_mentions() : string
bp_nouveau_ajax_delete_activity() : string
bp_nouveau_ajax_dismiss_sitewide_notice()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_ajax_get_activity_objects() : string
This is used within the activity post form autocomplete field.
package | BuddyPress |
---|---|
since | 3.0.0 |
string
JSON replybp_nouveau_ajax_get_single_activity_content() : string
Used for the 'Read More' link on long activity items.
package | BuddyPress |
---|---|
since | 3.0.0 |
string
JSON replybp_nouveau_ajax_get_users_to_invite()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_ajax_joinleave_group() : string
bp_nouveau_ajax_mark_activity_favorite() : string
bp_nouveau_ajax_new_activity_comment() : string
package | BuddyPress |
---|---|
since | 3.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
string
JSON replybp_nouveau_ajax_object_template_loader() : string
bp_nouveau_ajax_post_update() : string
bp_nouveau_ajax_querystring(string $query_string, string $object) : string
The following function will take into account any cookies set in the JS and allow us to override the parameters sent. That way we can change the results returned without reloading the page.
By using cookies we can also make sure that user settings are retained across page loads.
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Query string for the current request.
string
Object for cookie.
string
Query string for the component loopsbp_nouveau_ajax_remove_group_invite()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_ajax_send_group_invites()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_ajax_spam_activity() : string
bp_nouveau_ajax_unmark_activity_favorite() : string
bp_nouveau_avatar_args() : array
bp_nouveau_base_account_has_xprofile()
package | BuddyPress |
---|---|
since | 3.0.0 |
deprecated | 8.0.0 |
bp_nouveau_before_activity_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_before_activity_post_form()
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 5.0.0 Move the `bp_before_activity_post_form` hook inside the Activity post form. |
bp_nouveau_before_blogs_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_before_groups_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_before_loop()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_before_members_directory_content()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_blog_has_latest_post() : boolean
bp_nouveau_blog_loop_item_has_lastest_post($classes)
bp_nouveau_blogs($bp_nouveau = null
)
bp_nouveau_blogs_confirm_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 12.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_blogs_create_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_blogs_customizer_controls(array $controls = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
the controls to add.
array
the controls to add.bp_nouveau_blogs_customizer_settings(array $settings = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
the settings to add.
array
the settings to add.bp_nouveau_blogs_loop_item()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_container_classes() : string
bp_nouveau_current_object()
If on single group screens we need to switch from component to bp_current_action() to add the correct IDs/labels for group/activity & similar screens.
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_current_user_can($capability = ''
) : boolean
bp_nouveau_customize_register(\WP_Customize_Manager $wp_customize)
bp_nouveau_customizer_enqueue_scripts()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_customizer_grid_choices(string $type = 'option'
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'option' to get the labels, 'classes' to get the classes
array
The list of labels or classes preserving keys.bp_nouveau_directory_list_class()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_directory_nav_object()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_directory_type_navs_class()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_filter_component()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_filter_container_id()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_format_notice_notification_for_user($array)
bp_nouveau_friend_hook(string $suffix = ''
)
package | BuddyPress |
---|---|
todo | Move this into bp-nouveau/includes/friends/template-tags.php once we'll need other friends template tags. |
since | 3.0.0 |
string
The suffix of the hook.
bp_nouveau_friends($bp_nouveau = null
)
bp_nouveau_get_activity_comment_action()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_get_activity_directory_nav_items()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_get_activity_filters() : array
bp_nouveau_get_activity_filters_array(string $output= ''
, array $filters= array()
, string $context= ''
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
HTML output
array
Optional.
string
array
bp_nouveau_get_appearance_settings(string $option = ''
) : array | false | mixed
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Leave empty to get all settings, specify a value for a specific one.
array
false
mixed
bp_nouveau_get_blog_signup_inline_script() : string
bp_nouveau_get_blogs_directory_nav_items()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_get_blogs_filters(string $context = ''
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'directory' or 'user'
array
the filtersbp_nouveau_get_component_filters(string $context= ''
, string $component= ''
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'directory', 'user' or 'group'.
string
The BuddyPress component ID.
array
the dropdown filters.bp_nouveau_get_component_slug(string $component_id = ''
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
string
The component ID.
string
The slug for the requested component ID.bp_nouveau_get_container_classes() : string
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 7.0.0 Add a class to inform about the active Theme. |
string
CSS classesbp_nouveau_get_current_priority_nav_object() : string
bp_nouveau_get_customizer_link(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The argument to customize the Customizer link.
string
HTML.bp_nouveau_get_directory_list_class() : string
bp_nouveau_get_directory_nav_object() : array
bp_nouveau_get_directory_type_navs_class() : string
Gets the directory component nav class. Gets user selection Customizer options.
package | BuddyPress |
---|---|
since | 3.0.0 |
string
bp_nouveau_get_filter_container_id()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_get_filter_id() : string
bp_nouveau_get_filter_label() : string
bp_nouveau_get_group_create_steps_classes() : string
bp_nouveau_get_group_description_excerpt(object $group= null
, integer $length= null
) : string
Checks if the group loop is set as a 'Grid' layout and returns a reduced excerpt.
package | BuddyPress |
---|---|
since | 3.0.0 |
object
Optional. The group being referenced. Defaults to the group currently being iterated on in the groups loop.
integer
Optional. Length of returned string, including ellipsis. Default: 100.
string
Excerpt.bp_nouveau_get_group_potential_invites($args = array()
)
bp_nouveau_get_groups_directory_nav_items()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_get_groups_filters(string $context = ''
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'directory' or 'user'
array
the filtersbp_nouveau_get_loop_classes() : string
bp_nouveau_get_member_latest_update(string $activity_content= ''
, array $args= array()
, array $latest_update= array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
string
Formatted latest update for current member.
array
Array of parsed arguments.
array
Array of the latest activity data.
string
The formatted latest update for current member.bp_nouveau_get_members_directory_nav_items() : array
bp_nouveau_get_members_filters(string $context = ''
) : array
bp_nouveau_get_nav_classes() : string
bp_nouveau_get_nav_count() : integer
bp_nouveau_get_nav_id() : string
bp_nouveau_get_nav_link() : string
bp_nouveau_get_nav_link_id() : string
bp_nouveau_get_nav_link_text() : string
bp_nouveau_get_nav_link_title() : string
bp_nouveau_get_nav_scope() : string
bp_nouveau_get_notifications_filters() : string
bp_nouveau_get_search_objects(array $objects = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
(Optional) The list of objects.
array
The list of objects.bp_nouveau_get_search_primary_object(string $object = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
(Optional) The primary object.
string
The primary object.bp_nouveau_get_signup_fields(string $section = ''
) : array | false
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The section of fields to get 'account_details' or 'blog_details'.
array
false
The list of signup fields for the requested section. False if not found.bp_nouveau_get_single_item_nav_classes() : string
bp_nouveau_get_temporary_setting(string $option= ''
, mixed $retval= false
) : mixed
This is necessary when we need to get these very early.
package | BuddyPress |
---|---|
since | 3.0.0 |
string
the index of the setting to get.
mixed
the value to use as default.
mixed
The value for the requested option.bp_nouveau_get_theme_layout_widths() : array
bp_nouveau_get_user_feedback(string $feedback_id = ''
) : string | false
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 8.0.0 Adds the 'member-invites-none' feedback. |
string
The ID of the message.
string
false
The list of parameters for the messagebp_nouveau_get_wp_profile_field_data() : string
bp_nouveau_get_wp_profile_field_id() : integer
bp_nouveau_get_wp_profile_field_label() : string
bp_nouveau_get_wp_profile_fields(\WP_User $user = null
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
\WP_User
The user object. Optional.
array
The list of WP Profile fieldsbp_nouveau_group_creation_screen()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_group_creation_tabs()
package | BuddyPress |
---|---|
since | 3.0.0 |
deprecated | 12.0.0 |
bp_nouveau_group_description_excerpt(object $group= null
, integer $length= null
)
package | BuddyPress |
---|---|
since | 3.0.0 |
object
Optional. The group being referenced. Defaults to the group currently being iterated on in the groups loop.
integer
Optional. Length of returned string, including ellipsis. Default: 100.
bp_nouveau_group_get_core_create_screens(string $id = ''
) : mixed
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The screen id
mixed
An array containing the hook dynamic part, the nonce, and eventually a specific template.
False if it's not a core create screen.bp_nouveau_group_get_core_manage_screens(string $id = ''
) : mixed
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The screen id
mixed
An array containing the hook dynamic part and the nonce.
False if it's not a core manage screen.bp_nouveau_group_get_template_part(string $template = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The template part to get (eg: activity, members...).
string
HTML output.bp_nouveau_group_header_template_part()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_group_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_group_invites_create_steps(array $steps = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 10.0.0 The function is no more creating a Group invite step. |
array
The Group create steps.
array
The Group create steps.bp_nouveau_group_invites_interface() : string
bp_nouveau_group_locate_template_part(string $template = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The template part to get (eg: activity, members...).
string
The located template.bp_nouveau_group_manage_screen()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_group_print_invites_placeholders()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_nouveau_group_print_invites_templates()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_nouveau_group_reset_front_template(array $templates= array()
, \BP_Groups_Group $group= null
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The list of templates for the front.php template part.
\BP_Groups_Group
Optional. The group object.
array
The same list with the default front template if needed.bp_nouveau_group_setup_nav()
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 10.0.0 The function is no longer creating a Group invite nav. |
bp_nouveau_group_template_part()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_group_type_checked(object $type = null
)
package | BuddyPress |
---|---|
since | 3.2.0 |
object
Group type object. See bp_groups_get_group_type_object().
bp_nouveau_groups($bp_nouveau = null
)
bp_nouveau_groups_activity_post_form()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_groups_create_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_groups_create_steps_classes()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_groups_customizer_controls(array $controls = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The controls to add.
array
the controls to add.bp_nouveau_groups_customizer_sections(array $sections = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
the Customizer sections to add.
array
the Customizer sections to add.bp_nouveau_groups_customizer_settings(array $settings = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The settings to add.
array
the settings to add.bp_nouveau_groups_disallow_all_members_invites(boolean $default = false
) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
False to allow. True to disallow.
boolean
bp_nouveau_groups_do_group_boxes() : boolean
bp_nouveau_groups_front_page_description() : boolean
bp_nouveau_groups_get_customizer_option_link() : string
bp_nouveau_groups_get_group_invites_setting(integer $user_id = 0
) : integer
package | BuddyPress |
---|---|
since | 3.0.0 |
since | 4.4.0 |
integer
The user ID to check group invites preference for.
integer
Returns 1 if user chose to restrict to friends, 0 otherwise.bp_nouveau_groups_get_inviter_ids($user_id, $group_id)
bp_nouveau_groups_invites_restriction_admin_nav(array $wp_admin_nav) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The list of settings admin subnav items.
array
The list of settings admin subnav items.bp_nouveau_groups_invites_restriction_nav()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_groups_localize_scripts(array $params = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Associative array containing the JS Strings needed by scripts
array
The same array with specific strings for the Group's Invite UI if needed.bp_nouveau_groups_loop_item()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_groups_notification_filters()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_groups_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The array of scripts to register.
array
The same array with the specific groups scripts.bp_nouveau_groups_screen_invites_restriction()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_has_nav(array $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
array
{ Array of arguments.
@type string $type The type of Nav to get (primary or secondary)
Default 'primary'. Required.
@type string $object The object to get the nav for (eg: 'directory', 'group_manage',
or any custom object). Default ''. Optional
@type bool $user_has_access Used by the secondary member's & group's nav. Default true. Optional.
@type bool $show_for_displayed_user Used by the primary member's nav. Default true. Optional.
}
boolean
True if the Nav contains items. False otherwise.bp_nouveau_has_signup_xprofile_fields(boolean $do_loop = false
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
Whether to init an xProfile loop.
boolean
True if there are signup profile fields to display. False otherwise.bp_nouveau_has_wp_profile_fields() : boolean
bp_nouveau_hidden_primary_nav()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_hidden_secondary_nav()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_hook(array $pieces = array()
)
bp_nouveau_invitations_bulk_management_dropdown()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_nouveau_is_feed_enable() : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
boolean
True to output the Activity RSS link. False otherwise.bp_nouveau_is_groups_invitations_active()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_nouveau_loop_get_grid_columns() : integer
bp_nouveau_loop_is_grid() : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
True if loop is displayed in grid mod. False otherwise.bp_nouveau_member_customizer_nav() : array
bp_nouveau_member_description(integer $user_id = 0
) : string
bp_nouveau_member_description_edit_link() : string
bp_nouveau_member_email_notice_settings()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_member_extra_content()
package | BuddyPress |
---|---|
since | 6.0.0 |
bp_nouveau_member_get_description_edit_link() : string
bp_nouveau_member_get_template_part(string $template = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The template part to get (eg: activity, groups...).
string
HTML output.bp_nouveau_member_has_extra_content() : boolean
package | BuddyPress |
---|---|
since | 6.0.0 |
boolean
True if some extra content needs to be displayed into the members directory.
False otherwise.bp_nouveau_member_header_template_part() : string
bp_nouveau_member_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'before' or 'after'
string
Use it to add terms at the end of the hook name
bp_nouveau_member_locate_template_part(string $template = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The template part to get (eg: activity, groups...).
string
The located template.bp_nouveau_member_reset_front_template(array $templates = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The list of templates for the front.php template part.
array
The same list with the default front template if needed.bp_nouveau_member_restrict_user_front_templates(array $templates = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The User's front template hierarchy.
array
Only the global front templates.bp_nouveau_member_template_part()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_members($bp_nouveau = null
)
bp_nouveau_members_get_customizer_option_link() : string
bp_nouveau_members_loop_additional_info(array $additional_info= array()
, array $args= array()
) : array
package | BuddyPress |
---|---|
since | 10.0.0 |
array
An associative array with additional information to include in the Ajax response.
array
The Ajax query arguments.
array
Additional information about the members loop.bp_nouveau_members_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
array
Optional. The array of scripts to register.
array
The same array with the specific members scripts.bp_nouveau_members_wp_bio_info() : boolean
bp_nouveau_nav_has_count() : boolean
bp_nouveau_nav_item()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_nav_items() : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
boolean
True if there are still items to display. False otherwise.bp_nouveau_notifications($bp_nouveau = null
)
bp_nouveau_notifications_bulk_management_dropdown()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_notifications_dashiconified_link(string $link= ''
, string $bp_tooltip= ''
, string $dashicon= ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The action link.
string
The data-bp-attribute of the link.
string
The dashicon class.
string
Link Output.bp_nouveau_notifications_delete_link(string $link = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The Delete action link.
string
Link Output.bp_nouveau_notifications_enqueue_scripts()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_notifications_filters()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_notifications_get_filters(string $id = ''
) : array | false
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The notificication component action to get the filter of. Leave empty to get all notifications filters.
array
false
All or a specific notifications parameters. False if no match are found.bp_nouveau_notifications_init_filters()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_notifications_mark_read_link(string $link = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The Mark Read action link.
string
Link Output.bp_nouveau_notifications_mark_unread_link(string $link = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The Mark Unread action link.
string
Link Output.bp_nouveau_notifications_register_filter(array $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
array
{ Array of arguments.
@type string $id The unique string to identify your "component action". Required.
@type string $label The human readable notification type. Required.
@type int $position The position to output your filter. Optional.
}
boolean
True if the filter has been successfully registered. False otherwise.bp_nouveau_notifications_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The array of scripts to register
array
The same array with the specific notifications scripts.bp_nouveau_notifications_sort(array $filters = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The notifications filters to order.
array
The sorted filters.bp_nouveau_notifications_sort_order_links()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_pagination(string $position)
bp_nouveau_parse_hooked_dir_nav(string $hook= ''
, string $component= ''
, integer $position= 99
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The hook to fire.
string
The component nav belongs to.
integer
The position of the nav item.
array
A list of component's dir nav itemsbp_nouveau_plugin_hook(string $suffix = ''
)
bp_nouveau_prepare_group_for_js($item)
bp_nouveau_prepare_group_potential_invites_for_js($user)
bp_nouveau_push_sitewide_notices()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_register_activity_ajax_actions()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_register_blogs_ajax_actions()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_register_core_block_globals(array $block_globals = array()
) : array
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The list of global properties for Core blocks.
array
The list of global properties for Core blocks.bp_nouveau_register_groups_ajax_actions()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_nouveau_render_primary_nav_block(array $attributes = array()
) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
array
The block attributes.
string
HTML output.bp_nouveau_restrict_rest_group_invite_to_friends(boolean|\WP_Error $retval, \WP_REST_Request $request) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 7.2.1 |
boolean
\WP_Error
Whether the request can continue.
\WP_REST_Request
The request sent to the API.
boolean
\WP_Error
bp_nouveau_sanitize_nav_order(string $option = ''
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
string
A comma separated list of nav items slugs.
array
An array of nav items slugs.bp_nouveau_search_container_class()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_search_default_text(string $text= ''
, string $is_attr= true
)
package | BuddyPress |
---|---|
todo | 28/09/17 added 'empty( $text )' check to $object query as it wasn't returning output as expected & not returning user set params This may require further examination - hnla |
since | 3.0.0 |
string
Optional. The default search text for the search object.
string
Optional. True if it's to be output inside an attribute. False otherwise.
bp_nouveau_search_form()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_search_object_data_attr(string $attr = ''
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
string
The data-bp attribute.
string
The data-bp attribute.bp_nouveau_search_selector_id(string $suffix= ''
, string $sep= '-'
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. A string to append at the end of the ID.
string
Optional. The separator to use between each token.
bp_nouveau_search_selector_name(string $suffix= ''
, string $sep= '_'
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. A string to append at the end of the name.
string
Optional. The separator to use between each token.
bp_nouveau_set_nav_item_order(object $nav= null
, array $order= array()
, string $parent_slug= ''
) : boolean
package | BuddyPress |
---|---|
since | 3.0.0 |
object
The BuddyPress Item Nav object to reorder
array
A list of slugs ordered (eg: array( 'profile', 'activity', etc..) )
string
A parent slug if it's a secondary nav we are reordering (case of the Groups single item)
boolean
False otherwise.bp_nouveau_signup_form(string $section = 'account_details'
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. The section of fields to get 'account_details' or 'blog_details'. Default: 'account_details'.
bp_nouveau_signup_hook(string $when= ''
, string $prefix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
'before' or 'after'
string
Use it to add terms before the hook name
bp_nouveau_signup_privacy_policy_acceptance_section()
package | BuddyPress |
---|---|
since | 4.0.0 |
bp_nouveau_single_item_nav_classes()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_single_item_supports_priority_nav(string $single_item = ''
) : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The single item object name. Possible valuers are 'member' or 'group'.
boolean
True if the single item supports priority nav. False otherwise.bp_nouveau_template_notices()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_theme_cover_image(array $params = array()
) : string
package | BuddyPress |
---|---|
since | 3.0.0 |
array
Optional. The current component's feature parameters.
string
bp_nouveau_unregister_blocks_for_post_context()
package | BuddyPress |
---|---|
since | 9.0.0 |
bp_nouveau_user_feedback(string $feedback_id = ''
)
bp_nouveau_wp_profile_field()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_wp_profile_field_label()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_wp_profile_fields() : boolean
bp_nouveau_wp_profile_hooks($type = 'before'
)
bp_nouveau_wrapper(array $args = array()
)
package | BuddyPress |
---|---|
since | 3.0.0 |
array
{ Optional arguments.
@type string $container String HTML container type that should wrap
the items as a group: 'div', 'ul', or 'p'. Required.
@type string $container_id The group wrapping container element ID
@type string $container_classes The group wrapping container elements class
@type string $output The HTML to output. Required.
}
bp_nouveau_xprofile($bp_nouveau = null
)
bp_nouveau_xprofile_edit_visibilty()
package | BuddyPress |
---|---|
since | 3.0.0 |
bp_nouveau_xprofile_hook(string $when= ''
, string $suffix= ''
)
package | BuddyPress |
---|---|
since | 3.0.0 |
string
Optional. Either 'before' or 'after'.
string
Optional. Use it to add terms at the end of the hook name.
bp_nouveau_xprofile_register_scripts(array $scripts = array()
) : array
package | BuddyPress |
---|---|
since | 3.0.0 |
array
The array of scripts to register
array
The same array with the specific groups scripts.bp_optouts_reset_cache_incrementor()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_page_title()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
deprecated | Use wp_title() |
since | 1.0.0 |
bp_parse_ajax_referer_query(\WP_Query $referer_query)
bp_parse_args(string|array $args, array $defaults= array()
, string $filter_key= ''
) : array
This function is used throughout BuddyPress to allow for either a string or array to be merged into another array. It is identical to wp_parse_args() except it allows for arguments to be passively or aggressively filtered using the optional $filter_key parameter. If no $filter_key is passed, no filters are applied.
package | BuddyPress |
---|---|
since | 2.0.0 |
string
array
Value to merge with $defaults.
array
Array that serves as the defaults.
string
String to key the filters from.
array
Merged user defined values with defaults.bp_parse_query(\WP_Query $posts_query)
bp_php_requirements_notice()
package | BuddyPress |
---|---|
since | 2.8.0 |
bp_post_render_core_comments_block(string $block_content) : string
package | BuddyPress |
---|---|
since | 10.7.0 |
string
The rendered block content.
string
Unchanged rendered block content.bp_post_request()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_potential_friend_id(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.6 |
see | for a description of arguments. |
integer
See {@link bp_get_potential_friend_id()}.
bp_pre_get_option(boolean $value = false
) : mixed
package | BuddyPress |
---|---|
since | 1.6.0 |
boolean
Optional. Default value false.
mixed
False if not overloaded, mixed if set.bp_pre_render_core_comments_block(string|null $pre_render, array $parsed_block) : string | null
package | BuddyPress |
---|---|
since | 10.7.0 |
string
null
The pre-rendered content. Default null.
array
The block being rendered.
string
null
Unchanged pre-rendered content.bp_pre_schema_upgrade()
dbDelta()
cannot handle certain operations - like changing indexes - so we do it here instead.
package | BuddyPress |
---|---|
since | 2.3.0 |
global | wpdb $wpdb WordPress database object. |
bp_profile_field_data(string|array $args = ''
)
package | BuddyPress |
---|---|
since | 1.2.0 |
string
array
Array of arguments for field data. See {@link bp_get_profile_field_data}
bp_profile_fields() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_profile_get_field_groups() : array
bp_profile_get_settings_visibility_select(array|string $args = ''
) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
{ Args for the select list.
@type int $field_id ID of the field to render. @type string $before Markup to render before the field. @type string $before_controls markup before form controls. @type string $after Markup to render after the field. @type string $after_controls Markup after the form controls. @type string $class Class to apply to the field markup. @type string $label_class Class to apply for the label element. @type string $notoggle_tag Markup element to use for notoggle tag. @type string $notoggle_class Class to apply to the notoggle element. }
string
$retvalbp_profile_group_has_fields() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_profile_group_name(boolean $deprecated = true
) : string | null
package | BuddyPress |
---|---|
since | 1.0.0 |
boolean
Deprecated boolean parameter.
string
null
bp_profile_group_tabs()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_profile_groups() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_profile_has_multiple_groups() : boolean
bp_profile_last_updated()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_profile_settings_visibility_select(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
Args for the select list. See {@link bp_profile_get_settings_visibility_select}
bp_ready()
Attached to 'wp'.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_redirect_canonical()
This function ensures that requests for BuddyPress content are always redirected to their canonical versions. Canonical versions are always trailingslashed, and are typically the most general possible versions of the URL - eg, example.com/groups/mygroup/ instead of example.com/groups/mygroup/home/.
package | BuddyPress |
---|---|
since | 1.6.0 |
see | where $bp->canonical_stack['base_url'] and ['component'] may be set. |
see | where $bp->canonical_stack['action'] may be set. |
bp_register_activity_actions()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_register_admin_settings()
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_register_block(array $args = array()
) : \BP_Block
package | BuddyPress |
---|---|
since | 6.0.0 |
array
The registration arguments for the block type.
\BP_Block
The BuddyPress block type object.bp_register_block_assets()
package | BuddyPress |
---|---|
since | 9.0.0 |
since | 12.0.0 Adds the BuddyPress Blocks collection & uses the `@wordpress/scripts` `index.asset.php` generated file to get dependencies. |
bp_register_block_components()
package | BuddyPress |
---|---|
since | 6.0.0 |
since | 9.0.0 Adds a dependency to `wp-server-side-render` if WP >= 5.3. Uses a dependency to `wp-editor` otherwise. |
since | 12.0.0 Uses the `@wordpress/scripts` `index.asset.php` generated file to get dependencies. |
bp_register_buddypress_theme_feature()
package | BuddyPress |
---|---|
since | 14.0.0 |
bp_register_group_extension(string $group_extension_class = ''
) : boolean
package | BuddyPress |
---|---|
since | 1.1.0 |
since | 10.0.0 The function was moved from the `/bp-groups/classes/class-bp-group-extension.php` file. It only registers Group Extensions if their corresponding class name has not been already registered. |
string
Name of the Extension class.
boolean
Returns true on success, otherwise false.bp_register_importers()
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_register_member_type(string $member_type, array $args = array()
) : object | \WP_Error
package | BuddyPress |
---|---|
since | 2.2.0 |
string
Unique string identifier for the member type.
array
{ Array of arguments describing the member type.
@type array $labels {
Array of labels to use in various parts of the interface.
@type string $name Default name. Should typically be plural.
@type string $singular_name Singular name.
}
@type bool|string $has_directory Whether the member type should have its own type-specific directory.
Pass `true` to use the `$member_type` string as the type's slug.
Pass a string to customize the slug. Pass `false` to disable.
Default: true.
@type bool $show_in_list Whether this member type should be shown in lists rendered by
bp_member_type_list(). Default: false.
@type bool $code Whether this member type is registered using code. Default: true.
@type int $db_id The member type term ID. Default: 0.
}
object
\WP_Error
Member type object on success, WP_Error object on failure.bp_register_member_types()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_register_nav()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_register_notifications_personal_data_exporter(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_register_post_statuses()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_register_post_types()
package | BuddyPress |
---|---|
since | 2.5.0 |
bp_register_taxonomies()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_register_template_stack(string $location_callback= ''
, integer $priority= 10
) : boolean
This allows for templates to live in places beyond just the parent/child relationship, to allow for custom template locations. Used in conjunction with bp_locate_template(), this allows for easy template overrides.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Callback function that returns the stack location.
integer
Optional. The priority parameter as passed to add_filter(). Default: 10.
boolean
See {@link add_filter()}.bp_register_theme_compat_default_features()
Note: BP Legacy's buddypress-functions.php is not loaded in WP Administration as it's loaded using bp_locate_template(). That's why this function is here.
package | BuddyPress |
---|---|
since | 2.4.0 |
global | string $content_width the content width of the theme |
bp_register_theme_directory()
The main action used registering theme directories.
package | BuddyPress |
---|---|
since | 1.5.0 |
deprecated | 12.0.0 |
bp_register_theme_package(array $theme= array()
, boolean $override= true
)
For an example of how this function is used, see: BuddyPress::register_theme_packages().
package | BuddyPress |
---|---|
since | 1.7.0 |
see | for a description of the $theme parameter arguments. |
array
See {@link BP_Theme_Compat}.
boolean
If true, overrides whatever package is currently set. Default: true.
bp_register_theme_packages()
The main action used registering theme packages.
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_registration_needs_activation() : boolean
On a normal BuddyPress installation, all registrations require email activation. This filter exists so that customizations that omit activation can remove certain notification text from the registration screen.
package | BuddyPress |
---|---|
since | 1.2.0 |
boolean
True by default.bp_rel_canonical()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_remove_adjacent_posts_rel_link()
WordPress automatically generates these relational links to the current page. However, BuddyPress doesn't adhere to these links. In this function, we remove these links when on a BuddyPress page. This also prevents additional, unnecessary queries from running.
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_remove_all_filters(string $tag, integer|boolean $priority = false
) : boolean
Removed filters are stashed in the $bp global, in case they need to be restored later.
package | BuddyPress |
---|---|
since | 1.7.0 |
global | array $wp_filter Stores all the filters. |
global | array $merged_filters Merges the filter hooks using this function. |
string
The filter tag to remove filters from.
integer
boolean
Optional. If present, only those callbacks attached at a given priority will be removed. Otherwise, all callbacks attached to the tag will be removed, regardless of priority.
boolean
bp_remove_caps()
This is called on plugin deactivation.
package | BuddyPress |
---|---|
since | 1.6.0 |
global | WP_Roles $wp_roles WordPress role management object. |
bp_remove_group_type_on_group_delete(integer $group_id = 0
)
bp_remove_member_type(integer $user_id, string $member_type) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 2.3.0 |
integer
ID of the user.
string
Member Type.
boolean
\WP_Error
bp_remove_member_type_on_delete_user(integer $user_id)
bp_remove_member_type_on_user_delete(integer $user_id) : boolean | array
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
ID of the user.
boolean
array
$value See {@see bp_set_member_type()}.bp_remove_object_terms(integer $object_id, string|array $terms, string $taxonomy) : boolean | \WP_Error
package | BuddyPress |
---|---|
since | 2.3.0 |
see | for a full description of function and parameters. |
integer
Object ID.
string
array
Term or terms to remove.
string
Taxonomy name.
boolean
\WP_Error
True on success, false or WP_Error on failure.bp_remove_roles()
This is called on plugin deactivation.
package | BuddyPress |
---|---|
since | 1.6.0 |
deprecated | 1.7.0 |
bp_remove_user_data_on_delete_user_hook($component, integer $user_id) : boolean
WordPress's 'delete_user' hook is ambiguous: on a standard installation, it means that a user account is being removed from the system, while on Multisite it simply means the user is being removed from a specific site (ie its roles are being revoked). As a rule, this means that BuddyPress should remove user data on the delete_user hook only on non-Multisite installations - only when the user account is being removed altogether. However, this behavior can be filtered in a global, per-user, or per-component fashion.
package | BuddyPress |
---|---|
since | 6.0.0 |
integer
ID of the user, as passed to 'delete_user'.
boolean
bp_replace_the_content(string $content = ''
) : string
Replaces the_content() if the post_type being displayed is one that would normally be handled by BuddyPress, but proper single page templates do not exist in the currently active theme.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Original post content.
string
$content Post content, potentially modified.bp_request(array $query_vars = array()
) : array
package | BuddyPress |
---|---|
since | 1.7.0 |
see | for a description of parameters. |
array
See {@link WP::parse_request()}.
array
$query_vars See {@link WP::parse_request()}.bp_reset_query(string $bp_request= ''
, \WP_Query $query= null
) : true
This is used for specific cases such as Root Member's profile.
package | BuddyPress |
---|---|
since | 12.0.0 |
global | WP $wp WordPress main instance. |
string
A specific BuddyPress request.
\WP_Query
The WordPress query object.
true
bp_rest_api_init()
package | BuddyPress |
---|---|
since | 2.6.0 |
bp_rest_api_is_available() : boolean
package | BuddyPress |
---|---|
since | 5.0.0 |
boolean
True if the BP REST API is available. False otherwise.bp_rest_api_register_request_script()
package | BuddyPress |
---|---|
since | 5.0.0 |
deprecated | 10.0.0 |
bp_rest_api_signup_disabled_feature_dispatch_error(mixed $result, \WP_REST_Server $server, \WP_REST_Request $request) : mixed
package | BuddyPress |
---|---|
since | 15.0.0 |
mixed
Response to replace the requested version with. Can be anything a normal endpoint can return, or null to not hijack the request.
\WP_REST_Server
Server instance.
\WP_REST_Request
Request used to generate the response.
mixed
bp_rest_api_v1_dispatch_error(mixed $result, \WP_REST_Server $server, \WP_REST_Request $request) : mixed
package | BuddyPress |
---|
mixed
Response to replace the requested version with. Can be anything a normal endpoint can return, or null to not hijack the request.
\WP_REST_Server
Server instance.
\WP_REST_Request
Request used to generate the response.
mixed
bp_rest_get_object_url(integer $object_id, string $object_path) : string
package | BuddyPress |
---|---|
since | 9.0.0 |
integer
Object ID.
string
Path of the component endpoint.
string
bp_rest_get_user(integer $user_id) : \WP_User | boolean
bp_rest_get_user_url(integer $user_id) : string
bp_rest_in_buddypress() : boolean
If the BP REST plugin is active, it overrides BuddyPress REST endpoints.
package | BuddyPress |
---|---|
since | 5.0.0 |
boolean
Whether to use BuddyPress core REST endpoints.bp_rest_is_plugin_active() : boolean
package | BuddyPress |
---|---|
since | 5.0.0 |
boolean
True if the BP REST plugin is active. False otherwise.bp_rest_namespace() : string
bp_rest_post_dispatch(\WP_REST_Response $response, \WP_REST_Server $instance, \WP_REST_Request $request) : \WP_REST_Response
Second part in embedding the latest blog post.
package | BuddyPress |
---|---|
link | https://github.com/buddypress/BP-REST/pull/395 |
\WP_REST_Response
Response generated by the request.
\WP_REST_Server
Server instance.
\WP_REST_Request
Request used to generate the response.
\WP_REST_Response
bp_rest_prepare_date_response(string $date_gmt, string|null $date = null
) : string | null
package | BuddyPress |
---|---|
since | 5.0.0 |
string
Date GMT format.
string
null
Optional. Date object.
string
null
ISO8601/RFC3339 formatted datetime.bp_rest_register_field(string $component_id, string $attribute, array $args= array()
, string $object_type= ''
) : boolean
package | BuddyPress |
---|---|
since | 5.0.0 |
string
The name of the active component (eg: activity
, groups
, xprofile
).
Required.
string
The attribute name. Required.
array
{
Optional. An array of arguments used to handle the registered field.
@see register_rest_field()
for a full description.
}
string
The xProfile object type to get. This parameter is only required for
the Extended Profiles component. Not used for all other components.
Possible values are data
, field
or group
.
boolean
True if the field has been registered successfully. False otherwise.bp_rest_response_add_total_headers(\WP_REST_Response $response, integer $total= 0
, integer $per_page= 0
) : \WP_REST_Response
package | BuddyPress |
---|---|
since | 5.0.0 |
\WP_REST_Response
The response data.
integer
The total number of found items.
integer
The number of items per page of results.
\WP_REST_Response
$response The response data.bp_rest_sanitize_group_types(string $group_types) : array | null
package | BuddyPress |
---|---|
since | 5.0.0 |
string
Comma-separated list of group types.
array
null
bp_rest_sanitize_member_types(string $value) : array | null | string
package | BuddyPress |
---|---|
since | 5.0.0 |
string
Comma-separated list of group types.
array
null
string
bp_rest_sanitize_string_list(array|string $collection) : array
package | BuddyPress |
---|---|
since | 5.0.0 |
array
string
List of strings.
array
Sanitized array of strings.bp_rest_validate_group_types(mixed $group_types) : \WP_Error | boolean
bp_rest_validate_member_types(mixed $value) : \WP_Error | true
bp_rest_version() : string
bp_restore_all_filters(string $tag, integer|boolean $priority = false
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
global | array $wp_filter Stores all the filters. |
global | array $merged_filters Merges the filter hooks using this function. |
string
The tag to which filters should be restored.
integer
boolean
Optional. If present, only those filters that were originally attached to the tag with $priority will be restored. Otherwise, all available filters will be restored, regardless of priority.
boolean
bp_restrict_group_creation(boolean $default_value = true
) : boolean
package | BuddyPress |
---|---|
since | 1.6.0 |
todo | Move into groups component. |
boolean
Optional. Fallback value if not found in the database. Default: true.
boolean
True if group creation is restricted, otherwise false.bp_rewind_blogs()
package | BuddyPress |
---|---|
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
bp_rewrites_get_custom_slug_rewrite_id(string $component_id= ''
, string $slug= ''
, string $context= ''
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The component ID (eg: activity
for the BP Activity component).
string
The customized slug.
string
The context for the customized slug, useful when the same slug is used for more than one rewrite ID of the same component.
string
The rewrite ID matching the customized slug.bp_rewrites_get_default_url_chunks() : array
bp_rewrites_get_member_data(string $request = ''
) : array
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The request used during parsing.
array
Data to use to find a member single item from the request.bp_rewrites_get_root_url() : string
bp_rewrites_get_slug(string $component_id= ''
, string $rewrite_id= ''
, string $default_slug= ''
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
string
The BuddyPress component's ID.
string
The screen rewrite ID, used to find the custom slugs.
Eg: member_profile_edit
will try to find the xProfile edit's slug.
string
The screen default slug, used as a fallback.
string
The slug to use for the screen belonging to the requested component.bp_rewrites_get_url(array $args = array()
) : string
package | BuddyPress |
---|---|
since | 12.0.0 |
array
{ Optional. An array of arguments.
@type string $component_id The BuddyPress component ID. Defaults ''.
@type string $directory_type Whether it's an object type URL. Defaults ''.
Accepts '' (no object type), 'members' or 'groups'.
@type string $single_item The BuddyPress single item's URL chunk. Defaults ''.
Eg: the member's user nicename for Members or the group's slug for Groups.
@type string $single_item_component The BuddyPress single item's component URL chunk. Defaults ''.
Eg: the member's Activity page.
@type string $single_item_action The BuddyPress single item's action URL chunk. Defaults ''.
Eg: the member's Activity mentions page.
@type array $single_item_action_variables The list of BuddyPress single item's action variable URL chunks. Defaults [].
}
string
The BuddyPress link.bp_root_domain()
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 12.0.0 |
bp_root_slug(string $component = ''
)
bp_sanitize_pagination_arg(string $page_arg= ''
, integer $page= 1
) : integer
package | BuddyPress |
---|---|
since | 2.2.0 |
string
The $_REQUEST argument to look for.
integer
The original page value to fall back to.
integer
A sanitized integer value, good for pagination.bp_screens()
Runs just after 'bp_actions'. Use this hook to attach your template loaders.
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_search_default_text(string $component = ''
)
package | BuddyPress |
---|---|
since | 1.5.0 |
see |
string
See {@link bp_get_search_default_text()}.
bp_search_form()
package | BuddyPress |
---|---|
deprecated | 1.5.0 |
bp_search_form_action() : string
package | BuddyPress |
---|---|
since | 1.0.0 |
string
URL action attribute for search forms, eg example.com/search/.bp_search_form_enabled() : boolean
bp_search_form_type_select() : string
bp_search_input_name(string $component = ''
)
bp_search_placeholder(string $component = ''
)
bp_send_email(string $email_type, string|array|integer|\WP_User $to, array $args = array()
) : boolean | \WP_Error
A true return value does not automatically mean that the user received the email successfully. It just only means that the method used was able to process the request without any errors.
package | BuddyPress |
---|---|
since | 2.5.0 |
string
Type of email being sent.
string
array
integer
\WP_User
Either a email address, user ID, WP_User object, or an array containing the address and name.
array
{ Optional. Array of extra parameters.
@type array $tokens Optional. Associative arrays of string replacements for the email.
}
boolean
\WP_Error
True if the email was sent successfully. Otherwise, a WP_Error object
describing why the email failed to send. The contents will vary based
on the email delivery class you are using.bp_send_welcome_email(integer $user_id = 0
)
bp_set_block_theme_compat()
package | BuddyPress |
---|---|
since | 14.0.0 |
bp_set_current_user_default_role()
Give a user the default role when creating content on a site they do not already have a role or capability on.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_set_member_type(integer $user_id, string|array $member_type, boolean $append = false
) : boolean | array
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 7.0.0 $member_type parameter also accepts an array of member type names. |
integer
ID of the user.
string
array
The member type name or an array of member type names.
boolean
Optional. True to append this to existing types for user, false to replace. Default: false.
boolean
array
$retval See {@see bp_set_object_terms()}.bp_set_object_terms(integer $object_id, string|array $terms, string $taxonomy, boolean $append = false
) : array<mixed,integer>
package | BuddyPress |
---|---|
since | 2.2.0 |
see | for a full description of function and parameters. |
integer
Object ID.
string
array
Term or terms to set.
string
Taxonomy name.
boolean
Optional. True to append terms to existing terms. Default: false.
array<mixed,integer>
Array of term taxonomy IDs.bp_set_object_type_terms_cache_group()
package | BuddyPress |
---|---|
since | 7.0.0 |
bp_set_template_included(mixed $template = false
) : mixed
package | BuddyPress |
---|---|
since | 1.8.0 |
mixed
Default: false.
mixed
False if empty. Template name if template included.bp_set_theme_compat_active(boolean $set = true
) : boolean
package | BuddyPress |
---|---|
since | 1.7.0 |
boolean
True to set the flag to true, false to set it to false.
boolean
bp_set_theme_compat_feature(string $theme_id, array $feature = array()
)
package | BuddyPress |
---|---|
since | 2.4.0 |
string
The theme id (eg: legacy).
array
An associative array (eg: array( name => 'feature_name', 'settings' => array() )).
bp_set_theme_compat_original_template(string $template = ''
) : string
Stash the original template file for the current query. Useful for checking if BuddyPress was able to find a more appropriate template.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The template originally selected by WP.
string
The template originally selected by WP (value of $template).bp_set_theme_compat_template(string $template = ''
) : string
Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The template currently in use.
string
The template currently in use (value of $template).bp_set_theme_compat_templates(array $templates = array()
) : array
Stash possible template files for the current query. Useful if plugins want to override them, or see what files are being scanned for inclusion.
package | BuddyPress |
---|---|
since | 1.7.0 |
array
The template stack.
array
The template stack (value of $templates).bp_settings_action_capabilities()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_settings_action_general()
We do quite a bit of logic and error handling here to make sure that users do not accidentally lock themselves out of their accounts. We also try to provide as accurate of feedback as possible without exposing anyone else's information to them.
Special considerations are made for super admins that are able to edit any users accounts already, without knowing their existing password.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_settings_action_notifications()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_settings_can_delete_self_account() : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
boolean
True if user can delete self account from front-end. False otherwise.bp_settings_data_exporter_items()
Piggybacks off of the 'wp_privacy_personal_data_exporters' filter and the 'exporter_friendly_name' key, which is meant for the admin area.
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 Looks for a potential exporter's BP/custom friendly name. |
bp_settings_get_personal_data_confirmation_date(\WP_User_Request $request) : string
package | BuddyPress |
---|---|
since | 4.0.0 |
\WP_User_Request
User request object.
string
Formatted date for the confirmation date.bp_settings_get_personal_data_expiration_date(\WP_User_Request $request) : string
package | BuddyPress |
---|---|
since | 4.0.0 |
\WP_User_Request
User request object.
string
Formatted date.bp_settings_get_personal_data_export_url(\WP_User_Request $request) : string
package | BuddyPress |
---|---|
since | 4.0.0 |
\WP_User_Request
User request object.
string
Export file URL.bp_settings_get_personal_data_request(integer $user_id = 0
) : \WP_User_Request | boolean
package | BuddyPress |
---|---|
since | 4.0.0 |
integer
WP user ID.
\WP_User_Request
boolean
WP_User_Request object on success, bool false on failure.bp_settings_get_registered_notification_keys() : array
bp_settings_pending_email_notice()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_settings_personal_data_export_exists(\WP_User_Request $request) : boolean
package | BuddyPress |
---|---|
since | 4.0.0 |
\WP_User_Request
User request object.
boolean
bp_settings_personal_data_exporter(string $email_address, integer $page) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The user's email address.
integer
Batch number.
array
An array of personal data.bp_settings_register_personal_data_exporter(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_settings_sanitize_notification_settings(array $settings = array()
) : array
package | BuddyPress |
---|---|
since | 2.3.5 |
array
Array of settings.
array
Sanitized settings.bp_settings_screen_capabilities()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_settings_screen_delete_account()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_settings_screen_notification()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_settings_show_capability_nav() : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
boolean
True if user can be shown the Capability nav. False otherwise.bp_settings_show_delete_account_nav() : boolean
package | BuddyPress |
---|---|
since | 12.0.0 |
boolean
True if user can be shown the Delete account nav. False otherwise.bp_settings_update_notification_settings(integer $user_id, array $settings)
package | BuddyPress |
---|---|
since | 2.3.5 |
integer
ID of the user whose settings are being updated.
array
Settings array.
bp_settings_verify_email_change()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_setup_cache_groups()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_setup_canonical_stack()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_setup_components()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_setup_current_user()
package | BuddyPress |
---|---|
since | 1.7.0 |
link | https://buddypress.trac.wordpress.org/ticket/6046 |
link | https://core.trac.wordpress.org/ticket/24169 |
bp_setup_globals()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_setup_members_invitations()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_setup_nav()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_setup_option_filters()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_setup_theme()
The main purpose of 'bp_setup_theme' is give themes a place to load their BuddyPress-specific functionality.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_setup_theme_compat(string $theme = ''
)
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Optional. The unique ID identifier of a theme package.
bp_setup_title()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_show_blog_signup_form(string $blogname= ''
, string $blog_title= ''
, string|\WP_Error $errors= ''
)
package | BuddyPress |
---|---|
since | 1.0.0 |
string
Optional. The default blog name (path or domain).
string
Optional. The default blog title.
string
\WP_Error
Optional. The WP_Error object returned by a previous submission attempt.
bp_signup_allowed()
package | BuddyPress |
---|---|
since | 1.1.0 |
deprecated | 15.0.0 |
bp_signup_avatar(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.1.0 |
see | for description of arguments. |
array
string
See {@link bp_get_signup_avatar(}.
bp_signup_avatar_dir_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_blog_privacy_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_blog_title_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_blog_url_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_email_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_get_subdomain_base() : string
Replaces bp_blogs_get_subdomain_base()
package | BuddyPress |
---|---|
since | 2.1.0 |
global | WP_Network $current_site |
string
The base URL - eg, 'example.com' for site_url() example.com or www.example.com.bp_signup_requires_privacy_policy_acceptance() : boolean
bp_signup_subdomain_base()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_signup_username_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_signup_with_blog_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_sitewide_activity_feed_link()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_sort_by_key(array $items, string|integer $key, string $type= 'alpha'
, boolean $preserve_keys= false
) : array
The main purpose for this function is so that you can avoid having to create your own awkward callback function for usort().
package | BuddyPress |
---|---|
since | 2.2.0 |
since | 2.7.0 Added $preserve_keys parameter. |
array
The items to be sorted. Its constituent items can be either associative arrays or objects.
string
integer
The array index or property name to sort by.
string
Sort type. 'alpha' for alphabetical, 'num' for numeric. Default: 'alpha'.
boolean
Whether to keep the keys or not.
array
$items The sorted array.bp_stop_live_spammer()
When an admin marks a live user as a spammer, that user can still surf around and cause havoc on the site until that person is logged out.
This code checks to see if a logged-in user is marked as a spammer. If so, we redirect the user back to wp-login.php with the 'reauth' parameter.
This clears the logged-in spammer's cookies and will ask the spammer to reauthenticate.
Note: A spammer cannot log back in - \bp_core_boot_spammer().
Runs on 'bp_init' at priority 5 so the members component globals are setup before we do our spammer checks.
This is important as the $bp->loggedin_user object is setup at priority 4.
package | BuddyPress |
---|---|
since | 1.8.0 |
bp_styles()
package | BuddyPress |
---|---|
deprecated | 12.0.0 |
bp_support_blocks() : boolean
package | BuddyPress |
---|---|
since | 6.0.0 |
boolean
True if the current installation supports BP Blocks.
False otherwise.bp_template_include(string $template = ''
) : string
Hooked to 'template_include'.
package | BuddyPress |
---|---|
since | 1.6.0 |
string
See 'template_include'.
string
Template file to use.bp_template_include_theme_compat(string $template = ''
) : string
package | BuddyPress |
---|---|
since | 1.7.0 |
string
Template name.
string
$template Template name.bp_template_include_theme_supports(string $template = ''
) : string
Listens to the 'template_include' filter and waits for any BuddyPress specific template condition to be met. If one is met and the template file exists, it will be used; otherwise.
Note that the _edit() checks are ahead of their counterparts, to prevent them from being stomped on accident.
package | BuddyPress |
---|---|
since | 1.7.0 |
string
The path to the template file that is being used.
string
The path to the template file that is being used.bp_template_redirect()
Run at 'template_redirect', just before WordPress selects and loads a theme template. The main purpose of this hook in BuddyPress is to redirect users who do not have the proper permission to access certain content.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_the_activity() : object
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Activity_Template $activities_template The main activity template loop class. |
object
The current activity within the loop.bp_the_blog() : object
package | BuddyPress |
---|---|
global | BP_Blogs_Template $blogs_template The main blog template loop class. |
object
The current blog within the loop.bp_the_body_class()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_group() : \BP_Groups_Group
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_Groups_Template $groups_template The Groups template loop class. |
\BP_Groups_Group
bp_the_member() : object
package | BuddyPress |
---|---|
since | 1.2.0 |
global | BP_Core_Members_Template $members_template The main member template loop class. |
object
bp_the_members_invitation() : object
bp_the_members_invitation_action_links(array|string $args = ''
)
bp_the_members_invitation_property(string $property= ''
, string $context= 'html'
)
package | BuddyPress |
---|---|
since | 8.0.0 |
string
The name of the property to display.
string
The context of display. Possible values are 'attribute' and 'html'.
bp_the_members_invitations() : array
bp_the_members_invitations_delete_link(integer $user_id = 0
)
bp_the_members_invitations_delete_url(integer $user_id = 0
)
Since this function directly outputs a URL, it is escaped.
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
The user ID.
bp_the_members_invitations_resend_link(integer $user_id = 0
)
bp_the_members_invitations_resend_url(integer $user_id = 0
)
Since this function directly outputs a URL, it is escaped.
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
The user ID.
bp_the_notification() : object
bp_the_notification_action_links(array|string $args = ''
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter to $args. |
array
string
Array of arguments.
bp_the_notification_component_action()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_component_name()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_date_notified()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_delete_link(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_delete_url(integer $user_id = 0
)
Since this function directly outputs a URL, it is escaped.
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_description()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_id()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_item_id()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_mark_link(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_mark_read_link(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_mark_read_url(integer $user_id = 0
)
Since this function directly outputs a URL, it is escaped.
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_mark_unread_link(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_mark_unread_url(integer $user_id = 0
)
Since this function directly outputs a URL, it is escaped.
package | BuddyPress |
---|---|
since | 2.1.0 |
since | 2.6.0 Added $user_id as a parameter. |
integer
The user ID.
bp_the_notification_secondary_item_id()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notification_time_since()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_the_notifications() : array
bp_the_profile_field() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_the_profile_field_description()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_profile_field_edit_value()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_profile_field_ids()
package | BuddyPress |
---|---|
since | 2.1.0 |
bp_the_profile_field_input_name()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_profile_field_is_required()
package | BuddyPress |
---|---|
todo | deprecate (not used internaly) + it doesn't make much sense to output a boolean. |
since | 1.1.0 |
bp_the_profile_field_required_label()
package | BuddyPress |
---|---|
since | 2.4.0 |
bp_the_profile_field_visibility_level()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_the_profile_field_visibility_level_label()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_the_profile_group() : mixed
package | BuddyPress |
---|---|
since | 1.0.0 |
global | BP_XProfile_Data_Template $profile_template Profile data template object. |
mixed
bp_the_profile_group_description()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_the_profile_group_edit_form_action()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_profile_group_field_ids()
package | BuddyPress |
---|---|
since | 1.1.0 |
bp_the_thread_delete_link()
package | BuddyPress |
---|---|
since | 1.5.0 |
bp_the_thread_exit_link()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_the_thread_recipients_list()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_the_thread_subject()
package | BuddyPress |
---|
bp_theme_compat_is_block_theme() : boolean
package | BuddyPress |
---|---|
since | 14.0.0 |
boolean
True if current theme compat is about a block theme.
False otherwise.bp_theme_compat_loop_end(\WP_Query $query)
bp_theme_compat_reset_post(array $args = array()
)
This dummy data is necessary because theme compatibility essentially fakes WordPress into thinking that there is content where, in fact, there is none (at least, no WordPress post content). By providing dummy data, we ensure that template functions - things like is_page() - don't throw errors.
package | BuddyPress |
---|---|
since | 1.7.0 |
global | WP_Query $wp_query WordPress database access object. |
global | WP_Post $post Current post object. |
array
Array of optional arguments. Arguments parallel the properties of {@link WP_Post}; see that class for more details.
bp_theme_compat_toggle_is_page(string $retval = ''
) : string
When theme compatibility sets the 'is_page' flag to true via bp_theme_compat_reset_post(), themes that use comments_template() in their page template will run.
To prevent comments_template() from rendering, we set the 'is_page' and 'is_single' flags to false since that function looks at these conditionals before querying the database for comments and loading the comments template.
This is done during the output buffer as late as possible to prevent any wonkiness.
package | BuddyPress |
---|---|
since | 1.9.2 |
global | WP_Query $wp_query WordPress database query object. |
string
The current post content.
string
bp_total_blog_count_for_user(integer $user_id = 0
)
bp_total_favorite_count_for_user(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of parameters. |
integer
See {@link bp_get_total_favorite_count_for_user()}.
bp_total_friend_count(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.0 |
integer
See {@link friends_get_total_friend_count()}.
bp_total_group_count_for_user(integer $user_id = 0
)
bp_total_mention_count_for_user(integer $user_id = 0
)
package | BuddyPress |
---|---|
since | 1.2.0 |
see | for description of parameters. |
integer
See {@link bp_get_total_mention_count_for_user()}.
bp_uninstall()
Runs when uninstalling BuddyPress.
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_unserialize_profile_field(string $value) : string
bp_update_db_stuff()
package | BuddyPress |
---|---|
deprecated | 1.7.0 |
global | wpdb $wpdb WordPress database object. |
bp_update_is_directory(boolean $is_directory= false
, string $component= ''
)
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
Optional. Default: false.
string
Optional. Component name. Default: the current component.
bp_update_is_item_admin(boolean $is_item_admin= false
, string $component= ''
)
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
Optional. Default: false.
string
Optional. Component name. Default: the current component.
bp_update_is_item_mod(boolean $is_item_mod= false
, string $component= ''
)
package | BuddyPress |
---|---|
since | 1.5.0 |
boolean
Optional. Default: false.
string
Optional. Component name. Default: the current component.
bp_update_option(string $option_name, mixed $value) : boolean
This is a wrapper for update_blog_option(), which in turn stores settings data (such as bp-pages) on the appropriate blog, given your current setup.
package | BuddyPress |
---|---|
since | 1.5.0 |
string
The option key to be set.
mixed
The value to be set.
boolean
bp_update_to_10_0()
package | BuddyPress |
---|---|
since | 10.0.0 |
bp_update_to_11_0()
package | BuddyPress |
---|---|
since | 11.0.0 |
bp_update_to_12_0()
package | BuddyPress |
---|---|
since | 12.0.0 |
bp_update_to_14_0()
Edit db schema to stop using boolean fields in favor of tinyint ones. This move was necessary to support WP Playground.
package | BuddyPress |
---|---|
since | 14.0.0 |
global | wpdb $wpdb WordPress database object. |
bp_update_to_1_5()
Database update methods based on version numbers.
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_update_to_1_6()
Database update methods based on version numbers.
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_update_to_1_9()
Notifications was added in 1.9.0, and previous installations will already have the core notifications API active. We need to add the new Notifications component to the active components option to retain existing functionality.
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_update_to_1_9_2()
In 1.9, BuddyPress stopped registering its theme directory when it detected that bp-default (or a child theme) was not currently being used, in effect deprecating bp-default. However, this ended up causing problems when site admins using bp-default would switch away from the theme temporarily: bp-default would no longer be available, with no obvious way (outside of a manual filter) to restore it. In 1.9.2, we add an option that flags whether bp-default or a child theme is active at the time of upgrade; if so,
the theme directory will continue to be registered even if the theme is deactivated temporarily. Thus, new installations will not see bp-default, but legacy installations using the theme will continue to see it.
package | BuddyPress |
---|---|
since | 1.9.2 |
bp_update_to_2_0()
package | BuddyPress |
---|---|
since | 2.0.0 |
bp_update_to_2_2()
package | BuddyPress |
---|---|
since | 2.2.0 |
bp_update_to_2_3()
package | BuddyPress |
---|---|
since | 2.3.0 |
bp_update_to_2_7()
package | BuddyPress |
---|---|
since | 2.7.0 |
bp_update_to_5_0()
package | BuddyPress |
---|---|
since | 5.0.0 |
bp_update_to_8_0()
new_avatar
activity type's component to members
.package | BuddyPress |
---|---|
since | 8.0.0 |
bp_update_user_last_activity(integer $user_id= 0
, string $time= ''
) : boolean
package | BuddyPress |
---|---|
since | 1.9.0 |
since | 7.0.0 Backward compatibility usermeta mirroring is only allowed if the legacy user query is enabled. |
integer
Optional. ID of the user being updated.
string
Optional. Time of last activity, in 'Y-m-d H:i:s' format.
boolean
bp_upload_dir() : boolean | array
Handy for multisite instances because all uploads are made on the BP root blog and we need to query the BP root blog for the upload directory data.
This function ensures that we only need to use switch_to_blog() once to get what we need.
package | BuddyPress |
---|---|
since | 2.3.0 |
boolean
array
bp_use_theme_compat_with_current_theme() : boolean
If the current theme's need for theme compat hasn't yet been detected, we do so using bp_detect_theme_compat_with_current_theme().
package | BuddyPress |
---|---|
since | 1.9.0 |
boolean
True if the current theme needs theme compatibility.bp_user_can(integer $user_id, string $capability, array|integer $args = array()
) : boolean
package | BuddyPress |
---|---|
since | 2.7.0 |
integer
string
Capability or role name.
array
integer
{ Array of extra arguments applicable to the capability check.
@type int $site_id Optional. Site ID. Defaults to the BP root blog.
@type mixed $a,... Optional. Extra arguments applicable to the capability check.
}
boolean
True if the user has the cap for the given parameters.bp_user_can_create_groups() : boolean
bp_user_firstname()
package | BuddyPress |
---|---|
since | 1.2.0 |
bp_user_fullname()
package | BuddyPress |
---|---|
since | 1.0.0 |
bp_user_has_access() : boolean
bp_user_has_opted_out(string $email_address = ''
) : boolean
package | BuddyPress |
---|---|
since | 8.0.0 |
string
Email address to check.
boolean
True if the user has opted out, false otherwise.bp_verify_nonce_request(string $action= ''
, string $query_arg= '_wpnonce'
) : boolean
To avoid security exploits within the theme.
package | BuddyPress |
---|---|
since | 1.6.0 |
string
Action nonce.
string
Where to look for nonce in $_REQUEST.
boolean
True if the nonce is verified, otherwise false.bp_version_bump()
package | BuddyPress |
---|---|
since | 1.6.0 |
bp_version_updater()
BuddyPress's version updater looks at what the current database version is, and runs whatever other code is needed - either the "update" or "install" code.
This is most often used when the data schema changes, but should also be used to correct issues with BuddyPress metadata silently on software update.
package | BuddyPress |
---|---|
since | 1.7.0 |
bp_word_or_name(string $youtext, string $nametext, boolean $capitalize= true
, boolean $echo= true
) : string | null
This function can be used in cases where a phrase used in a template will differ for a user looking at his own profile and a user looking at another user's profile (eg, "My Friends" and "Joe's Friends"). Pass both versions of the phrase, and bp_word_or_name() will detect which is appropriate, and do the necessary argument swapping for dynamic phrases.
package | BuddyPress |
---|---|
since | 1.0.0 |
string
The "you" version of the phrase (eg "Your Friends").
string
The other-user version of the phrase. Should be in a format appropriate for sprintf() - use %s in place of the displayed user's name (eg "%'s Friends").
boolean
Optional. Force into title case. Default: true.
boolean
Optional. True to echo the results, false to return them. Default: true.
string
null
$nametext If ! $echo, returns the appropriate string.bp_xprofile_action_settings()
package | BuddyPress |
---|---|
since | 1.9.0 |
bp_xprofile_add_xprofile_query_to_user_query(\BP_User_Query $q)
bp_xprofile_admin_form_field_types(string $select_field_type)
package | BuddyPress |
---|---|
since | 2.0.0 |
string
The name of the field type that should be selected. Will defaults to "textbox" if NULL is passed.
bp_xprofile_admin_get_signup_field(\BP_XProfile_Field $signup_field, object $field_group= null
, string $class= ''
, boolean $echo= false
) : string
package | BuddyPress |
---|---|
since | 8.0.0 |
\BP_XProfile_Field
The field to use into the signup form.
object
The real field group object.
string
Classes to append to output.
boolean
Whether to return or display the HTML output.
string
The HTML output.bp_xprofile_admin_load()
package | BuddyPress |
---|---|
since | 15.0.0 |
bp_xprofile_ajax_remove_signup_field()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_xprofile_bp_user_query_search(array $sql, \BP_User_Query $query) : array
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
array
Clauses in the user_id SQL query.
\BP_User_Query
User query object.
array
bp_xprofile_clear_field_cache(integer|\BP_XProfile_Field $field)
package | BuddyPress |
---|---|
since | 2.4.0 |
integer
\BP_XProfile_Field
A field ID or a field object.
bp_xprofile_clear_member_type_cache()
package | BuddyPress |
---|---|
since | 2.4.0 |
bp_xprofile_create_field_type(string $type) : object
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Type of profile field to create. See {@link bp_xprofile_get_field_types()} for default core values.
object
$value If field type unknown, returns BP_XProfile_Field_Type_Textarea.
Otherwise returns an instance of the relevant child class of BP_XProfile_Field_Type.bp_xprofile_escape_field_data(string $value, string $field_type, integer $field_id) : string
Most field values are simply run through esc_html(). Those that support rich text (by default, textarea
only)
are sanitized using kses, which allows HTML tags from a controlled list.
package | BuddyPress |
---|---|
since | 2.4.0 |
string
Field value.
string
Field type.
integer
Field ID.
string
bp_xprofile_filter_user_query_populate_extras(\BP_User_Query $user_query)
bp_xprofile_format_activity_action_new_avatar(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
deprecated | 8.0.0 |
string
Static activity action.
object
Activity object.
string
bp_xprofile_format_activity_action_new_member(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
deprecated | 2.2.0 |
string
Static activity action.
object
Activity object.
string
bp_xprofile_format_activity_action_updated_profile(string $action, object $activity) : string
package | BuddyPress |
---|---|
since | 2.0.0 |
string
Static activity action.
object
Activity object.
string
bp_xprofile_fullname_field_id() : integer
package | BuddyPress |
---|---|
since | 2.0.0 |
global | wpdb $wpdb WordPress database object. |
integer
Field ID.bp_xprofile_fullname_field_name() : string
bp_xprofile_get_field_type(integer $field_id) : \BP_XProfile_Field_Type | null
package | BuddyPress |
---|---|
since | 8.0.0 |
integer
ID of the field.
\BP_XProfile_Field_Type
null
Field Type object if found, otherwise null.bp_xprofile_get_field_types() : array
bp_xprofile_get_fields_by_visibility_levels(integer $user_id, array $levels = array()
) : array
package | BuddyPress |
---|---|
since | 1.6.0 |
see |
integer
The id of the profile owner.
array
An array of visibility levels ('public', 'friends', 'loggedin', 'adminsonly' etc) to be checked against.
array
$field_ids The fields that match the requested visibility levels for the given user.bp_xprofile_get_groups(array $args = array()
) : array
Procedural wrapper for BP_XProfile_Group::get() method.
package | BuddyPress |
---|---|
since | 2.1.0 |
array
See {@link BP_XProfile_Group::get()} for description of arguments.
array
$groupsbp_xprofile_get_hidden_field_types_for_user(integer $displayed_user_id= 0
, integer $current_user_id= 0
) : array
Field visibility is determined based on the relationship between the logged-in user, the displayed user, and the visibility setting for the current field. (See bp_xprofile_get_hidden_fields_for_user().) This utility function speeds up this matching by fetching the visibility levels that should be hidden for the current user pair.
package | BuddyPress |
---|---|
since | 1.8.2 |
see |
integer
The id of the user the profile fields belong to.
integer
The id of the user viewing the profile.
array
An array of visibility levels hidden to the current user.bp_xprofile_get_hidden_fields_for_user(integer $displayed_user_id= 0
, integer $current_user_id= 0
) : array
This is the function primarily responsible for profile field visibility. It works by determining the relationship between the displayed_user (ie the profile owner) and the current_user (ie the profile viewer). Then, based on that relationship, we query for the set of fields that should be excluded from the profile loop.
package | BuddyPress |
---|---|
since | 1.6.0 |
see | or if you have added your own custom levels. |
integer
The id of the user the profile fields belong to.
integer
The id of the user viewing the profile.
array
An array of field ids that should be excluded from the profile querybp_xprofile_get_non_cached_field_ids(integer $user_id= 0
, array $field_ids= array()
) : array
package | BuddyPress |
---|---|
since | 2.2.0 |
integer
User ID to check.
array
XProfile field IDs.
array
bp_xprofile_get_settings_fields(array|string $args = ''
) : boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
array
string
Array of args for the settings fields.
boolean
bp_xprofile_get_signup_field_ids() : array<mixed,integer>
package | BuddyPress |
---|---|
since | 8.0.0 |
since | 15.0.0 The SQL request was adapted to support WP Playground's SQLite DB. |
global | wpdb $wpdb WordPress database object. |
array<mixed,integer>
The signup field IDs.bp_xprofile_get_visibility_levels() : array
bp_xprofile_get_wp_user_keys() : array<mixed,string>
bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users(boolean $user_can, integer $user_id, string $capability) : boolean
package | BuddyPress |
---|---|
since | 2.7.1 |
boolean
integer
string
boolean
bp_xprofile_is_richtext_enabled_for_field(integer|null $field_id = null
) : boolean
By default, rich text is enabled for textarea fields and disabled for all other field types.
package | BuddyPress |
---|---|
since | 2.4.0 |
integer
null
Optional. Default current field ID.
boolean
bp_xprofile_maybe_format_datebox_post_data(integer $field_id)
This function only changes the global $_POST that should contain the datebox data.
package | BuddyPress |
---|---|
since | 2.8.0 |
integer
The id of the current field being looped through.
bp_xprofile_new_avatar_activity(integer $user_id = 0
) : boolean
package | BuddyPress |
---|---|
since | 1.0.0 |
since | 2.3.4 Add new parameter to get the user id the avatar was set for. |
deprecated | 8.0.0 |
integer
The user id the avatar was set for.
boolean
bp_xprofile_personal_data_exporter(string $email_address) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
string
The users email address.
array
An array of personal data.bp_xprofile_register_personal_data_exporter(array $exporters) : array
package | BuddyPress |
---|---|
since | 4.0.0 |
since | 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. |
array
An array of personal data exporters.
array
An array of personal data exporters.bp_xprofile_reset_fields_by_name_cache_incrementor()
package | BuddyPress |
---|---|
since | 2.8.0 |
bp_xprofile_reset_groups_cache_incrementor()
package | BuddyPress |
---|---|
since | 5.0.0 |
bp_xprofile_reset_signup_field_cache()
package | BuddyPress |
---|---|
since | 8.0.0 |
bp_xprofile_reset_user_mid_cache(integer $user_id)
bp_xprofile_sanitize_field_default(mixed $field_default = ''
) : array | integer
package | BuddyPress |
---|---|
since | 2.3.0 |
mixed
Field defaults to sanitize.
array
integer
bp_xprofile_signup_args(array $extra = array()
) : array
package | BuddyPress |
---|---|
since | 8.0.0 |
array
Optional extra arguments.
array
The xProfile loop's signup arguments.bp_xprofile_updated_profile_activity(integer $user_id, array $field_ids= array()
, boolean $errors= false
, array $old_values= array()
, array $new_values= array()
) : boolean
package | BuddyPress |
---|---|
since | 2.0.0 |
integer
ID of the user who has updated his profile.
array
IDs of the fields submitted.
boolean
True if validation or saving errors occurred, otherwise false.
array
Pre-save xprofile field values and visibility levels.
array
Post-save xprofile field values and visibility levels.
boolean
buddypress() : \BuddyPress | null
Use this function like you would a global variable, except without needing to declare the global.
Example: <?php $bp = buddypress(); ?>
package | BuddyPress |
---|
\BuddyPress
null
The one true BuddyPress Instance.build_query(array $data) : string
This is a convenient function for easily building url queries. It sets the separator to '&' and uses _http_build_query() function.
package | BuddyPress |
---|---|
see | Used to build the query |
link | more on what http_build_query() does. |
since | 2.3.0 |
array
URL-encode key/value pairs.
string
URL encoded stringcache_javascript_headers()
package | BuddyPress |
---|---|
since | 2.1.0 |
clean_pre(array|string $matches) : string
Ensures that the contents of a <
>...<> HTML block are not converted into paragraphs or line-breaks.
package | BuddyPress |
---|---|
since | 1.2.0 |
array
string
The array or string
string
The pre block without paragraph/line-break conversion.clean_url(string $url, array $protocols= null
, string $context= 'display'
) : string
A number of characters are removed from the URL. If the URL is for displaying (the default behaviour) amperstands are also replaced. The 'esc_url' filter is applied to the returned cleaned URL.
package | BuddyPress |
---|---|
since | 1.2.0 |
uses | To only permit protocols in the URL set via $protocols or the common ones set in the function. |
string
The URL to be cleaned.
array
Optional. An array of acceptable protocols. Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' if not set.
string
Optional. How the URL will be used. Default is 'display'.
string
The cleaned $url after the 'cleaned_url' filter is applied.current_time(string $type, integer|boolean $gmt = 0
) : integer | string
The 'mysql' type will return the time in the format for MySQL DATETIME field. The 'timestamp' type will return the current timestamp.
If $gmt is set to either '1' or 'true', then both types will use GMT time. if $gmt is false, the output is adjusted with the GMT offset in the WordPress option.
package | BuddyPress |
---|---|
since | 1.0.0 |
string
Either 'mysql' or 'timestamp'.
integer
boolean
Optional. Whether to use GMT timezone. Default is false.
integer
string
String if $type is 'gmt', int if $type is 'timestamp'.delete_blog_option(integer $blog_id, string $option_name) : boolean
package | BuddyPress |
---|---|
since | 1.5.0 |
see |
integer
Blog ID to delete for. Not used.
string
Option name to delete.
boolean
ent2ncr(string $text) : string
package | BuddyPress |
---|---|
since | 1.5.1 |
string
The text within which entities will be converted.
string
Text with converted entities.esc_attr(string $text) : string
esc_html(string $text) : string
esc_js(string $text) : string
Escapes text strings for echoing in JS, both inline (for example in onclick="...") and inside
Strip close comment and close php tags from file headers used by WP See http://core.trac.wordpress.org/ticket/8497
Parameters
$str