_bbp_filter_locale
_bbp_has_forums_query
_bbp_has_replies_query
_bbp_has_replies_where
_bbp_has_topics_query
_load_bbpress
_load_loader
bbp_activation
bbp_add_caps
bbp_add_error
bbp_add_forum_id_to_group
bbp_add_forums_roles
bbp_add_group_id_to_forum
bbp_add_moderator
bbp_add_options
bbp_add_pending_upgrade
bbp_add_permastructs
bbp_add_rewrite_rules
bbp_add_rewrite_tags
bbp_add_roles
bbp_add_sticky_topics
bbp_add_template_stack_locations
bbp_add_user_engagement
bbp_add_user_favorite
bbp_add_user_form_role_field
bbp_add_user_forum_subscription
bbp_add_user_options
bbp_add_user_subscription
bbp_add_user_to_object
bbp_add_user_topic_subscription
bbp_add_view_all
bbp_admin
bbp_admin_custom_menu_order
bbp_admin_forums
bbp_admin_get_settings_fields
bbp_admin_get_settings_fields_for_section
bbp_admin_get_settings_sections
bbp_admin_head
bbp_admin_init
bbp_admin_link
bbp_admin_menu
bbp_admin_menu_order
bbp_admin_notices
bbp_admin_repair_closed_topics
bbp_admin_repair_forum_hidden_reply_count
bbp_admin_repair_forum_meta
bbp_admin_repair_forum_reply_count
bbp_admin_repair_forum_topic_count
bbp_admin_repair_forum_visibility
bbp_admin_repair_freshness
bbp_admin_repair_handler
bbp_admin_repair_list
bbp_admin_repair_list_components_filter
bbp_admin_repair_list_search_form
bbp_admin_repair_list_versions_filter
bbp_admin_repair_page
bbp_admin_repair_reply_menu_order
bbp_admin_repair_sticky
bbp_admin_repair_tool_overhead_filters
bbp_admin_repair_tool_run_url
bbp_admin_repair_tool_status_filters
bbp_admin_repair_tool_translate_component
bbp_admin_repair_tool_translate_overhead
bbp_admin_repair_tool_translate_version
bbp_admin_repair_topic_hidden_reply_count
bbp_admin_repair_topic_meta
bbp_admin_repair_topic_reply_count
bbp_admin_repair_topic_tag_count
bbp_admin_repair_topic_voice_count
bbp_admin_repair_user_favorites
bbp_admin_repair_user_forum_subscriptions
bbp_admin_repair_user_reply_count
bbp_admin_repair_user_roles
bbp_admin_repair_user_topic_count
bbp_admin_repair_user_topic_subscriptions
bbp_admin_replies
bbp_admin_reset_database
bbp_admin_reset_handler
bbp_admin_reset_page
bbp_admin_reset_query_feedback
bbp_admin_separator
bbp_admin_setting_callback_akismet
bbp_admin_setting_callback_akismet_section
bbp_admin_setting_callback_anonymous
bbp_admin_setting_callback_buddypress_section
bbp_admin_setting_callback_edit_slug
bbp_admin_setting_callback_editlock
bbp_admin_setting_callback_engagements
bbp_admin_setting_callback_favorites
bbp_admin_setting_callback_features_section
bbp_admin_setting_callback_forum_mods
bbp_admin_setting_callback_forum_slug
bbp_admin_setting_callback_global_access
bbp_admin_setting_callback_group_forums
bbp_admin_setting_callback_group_forums_root_id
bbp_admin_setting_callback_include_root
bbp_admin_setting_callback_per_page_section
bbp_admin_setting_callback_per_rss_page_section
bbp_admin_setting_callback_replies_per_page
bbp_admin_setting_callback_replies_per_rss_page
bbp_admin_setting_callback_reply_archive_slug
bbp_admin_setting_callback_reply_slug
bbp_admin_setting_callback_revisions
bbp_admin_setting_callback_root_slug
bbp_admin_setting_callback_root_slug_section
bbp_admin_setting_callback_search
bbp_admin_setting_callback_search_slug
bbp_admin_setting_callback_show_on_root
bbp_admin_setting_callback_single_slug_section
bbp_admin_setting_callback_subscriptions
bbp_admin_setting_callback_subtheme_id
bbp_admin_setting_callback_subtheme_section
bbp_admin_setting_callback_super_mods
bbp_admin_setting_callback_thread_replies_depth
bbp_admin_setting_callback_throttle
bbp_admin_setting_callback_topic_archive_slug
bbp_admin_setting_callback_topic_slug
bbp_admin_setting_callback_topic_tag_slug
bbp_admin_setting_callback_topic_tags
bbp_admin_setting_callback_topics_per_page
bbp_admin_setting_callback_topics_per_rss_page
bbp_admin_setting_callback_use_autoembed
bbp_admin_setting_callback_use_wp_editor
bbp_admin_setting_callback_user_engagements_slug
bbp_admin_setting_callback_user_favs_slug
bbp_admin_setting_callback_user_section
bbp_admin_setting_callback_user_slug
bbp_admin_setting_callback_user_slug_section
bbp_admin_setting_callback_user_subs_slug
bbp_admin_setting_callback_view_slug
bbp_admin_settings
bbp_admin_settings_help
bbp_admin_tool_box
bbp_admin_tools_box
bbp_admin_tools_converter_help
bbp_admin_tools_feedback
bbp_admin_tools_repair_help
bbp_admin_tools_reset_help
bbp_admin_topics
bbp_admin_upgrade_group_forum_relationships
bbp_admin_upgrade_page
bbp_admin_upgrade_remove_favorites_from_usermeta
bbp_admin_upgrade_remove_forum_subscriptions_from_usermeta
bbp_admin_upgrade_remove_topic_subscriptions_from_usermeta
bbp_admin_upgrade_user_engagements
bbp_admin_upgrade_user_favorites
bbp_admin_upgrade_user_forum_subscriptions
bbp_admin_upgrade_user_topic_subscriptions
bbp_after_setup_theme
bbp_ajax_headers
bbp_ajax_response
bbp_ajax_url
bbp_allow_anonymous
bbp_allow_content_edit
bbp_allow_content_throttle
bbp_allow_forum_mods
bbp_allow_forums_of_user
bbp_allow_global_access
bbp_allow_revisions
bbp_allow_search
bbp_allow_super_mods
bbp_allow_threaded_replies
bbp_allow_topic_tags
bbp_allowed_tags
bbp_allowed_themes
bbp_approve_reply
bbp_approve_topic
bbp_approved_unapproved_topic_update_forum_reply_count
bbp_asset_version
bbp_author_display_name
bbp_author_email
bbp_author_ip
bbp_author_link
bbp_author_metabox
bbp_author_url
bbp_body_class
bbp_boot_strap_globals
bbp_breadcrumb
bbp_buddypress_add_notification
bbp_buddypress_mark_notifications
bbp_buffer_template_part
bbp_bump_forum_reply_count
bbp_bump_forum_reply_count_hidden
bbp_bump_forum_topic_count
bbp_bump_forum_topic_count_hidden
bbp_bump_topic_reply_count
bbp_bump_topic_reply_count_hidden
bbp_bump_user_reply_count
bbp_bump_user_topic_count
bbp_cancel_reply_to_link
bbp_categorize_forum
bbp_check_for_blacklist
bbp_check_for_duplicate
bbp_check_for_flood
bbp_check_for_moderation
bbp_check_forum_edit
bbp_check_post_lock
bbp_check_reply_edit
bbp_check_topic_edit
bbp_check_topic_tag_edit
bbp_check_user_edit
bbp_chunk_emails
bbp_clean_post_cache
bbp_clear_pending_upgrades
bbp_close_forum
bbp_close_topic
bbp_code_trick
bbp_code_trick_reverse
bbp_constants
bbp_convert_date
bbp_converter_setting_callback_clean
bbp_converter_setting_callback_convert_users
bbp_converter_setting_callback_dbname
bbp_converter_setting_callback_dbpass
bbp_converter_setting_callback_dbport
bbp_converter_setting_callback_dbprefix
bbp_converter_setting_callback_dbserver
bbp_converter_setting_callback_dbuser
bbp_converter_setting_callback_delay_time
bbp_converter_setting_callback_halt
bbp_converter_setting_callback_main_section
bbp_converter_setting_callback_options_section
bbp_converter_setting_callback_platform
bbp_converter_setting_callback_restart
bbp_converter_setting_callback_rows
bbp_converter_settings_page
bbp_create_initial_content
bbp_current_anonymous_user_data
bbp_current_author_ip
bbp_current_author_ua
bbp_current_screen
bbp_current_user_avatar
bbp_current_user_can_access_anonymous_user_form
bbp_current_user_can_access_create_forum_form
bbp_current_user_can_access_create_reply_form
bbp_current_user_can_access_create_topic_form
bbp_current_user_can_publish_forums
bbp_current_user_can_publish_replies
bbp_current_user_can_publish_topics
bbp_current_user_id
bbp_current_user_name
bbp_dashboard_widget_right_now
bbp_db
bbp_db_version
bbp_db_version_raw
bbp_deactivation
bbp_decode_callback
bbp_decrease_forum_reply_count
bbp_decrease_forum_reply_count_hidden
bbp_decrease_forum_topic_count
bbp_decrease_forum_topic_count_hidden
bbp_decrease_topic_reply_count
bbp_decrease_topic_reply_count_hidden
bbp_decrease_user_reply_count
bbp_decrease_user_topic_count
bbp_default_intercept
bbp_delete_forum
bbp_delete_forum_topics
bbp_delete_options
bbp_delete_reply
bbp_delete_rewrite_rules
bbp_delete_topic
bbp_delete_topic_replies
bbp_delete_user_options
bbp_deleted_forum
bbp_deleted_reply
bbp_deleted_topic
bbp_deregister_template_stack
bbp_deregister_view
bbp_display_replies_feed_rss2
bbp_display_topics_feed_rss2
bbp_displayed_user_field
bbp_displayed_user_id
bbp_do_ajax
bbp_do_not_redirect_edits
bbp_do_not_redirect_paginations
bbp_do_uninstall
bbp_doing_autosave
bbp_doing_script_debug
bbp_dropdown
bbp_dummy_role_names
bbp_edit_forum_handler
bbp_edit_lock
bbp_edit_reply_handler
bbp_edit_topic_handler
bbp_edit_topic_tag_handler
bbp_edit_user_blog_role
bbp_edit_user_contact_methods
bbp_edit_user_display_name
bbp_edit_user_email_send_notification
bbp_edit_user_form_fields
bbp_edit_user_forums_role
bbp_edit_user_handler
bbp_edit_user_language
bbp_encode_bad
bbp_encode_callback
bbp_engagements_strategy
bbp_enqueue_script
bbp_enqueue_scripts
bbp_enqueue_style
bbp_exclude_forum_ids
bbp_favorites_handler
bbp_favorites_permalink
bbp_filter_anonymous_post_data
bbp_filter_blog_editable_roles
bbp_filter_child_counts_list
bbp_filter_column_headers
bbp_filter_dashboard_glance_items
bbp_filter_default_option
bbp_filter_get_user_option
bbp_filter_is_single_user
bbp_filter_is_user_home
bbp_filter_kses
bbp_filter_modify_page_title
bbp_filter_notifications_get_registered_components
bbp_filter_pre_get_option
bbp_filter_sample_permalink
bbp_filter_user_id
bbp_filter_user_roles_option
bbp_find_mentions
bbp_find_mentions_pattern
bbp_fix_post_author
bbp_fix_untrash_post_status
bbp_footer
bbp_force_comment_status
bbp_form_forum_content
bbp_form_forum_moderators
bbp_form_forum_parent
bbp_form_forum_status_dropdown
bbp_form_forum_subscribed
bbp_form_forum_title
bbp_form_forum_type
bbp_form_forum_type_dropdown
bbp_form_forum_visibility
bbp_form_forum_visibility_dropdown
bbp_form_option
bbp_form_reply_content
bbp_form_reply_edit_reason
bbp_form_reply_log_edit
bbp_form_reply_status_dropdown
bbp_form_reply_to
bbp_form_slug_conflict_check
bbp_form_topic_content
bbp_form_topic_edit_reason
bbp_form_topic_forum
bbp_form_topic_log_edit
bbp_form_topic_status_dropdown
bbp_form_topic_subscribed
bbp_form_topic_tags
bbp_form_topic_title
bbp_form_topic_type_dropdown
bbp_format_activity_action_new_post
bbp_format_activity_action_new_reply
bbp_format_activity_action_new_topic
bbp_format_buddypress_notifications
bbp_format_revision_reason
bbp_format_user_display_name
bbp_forum_archive_title
bbp_forum_author_display_name
bbp_forum_author_id
bbp_forum_class
bbp_forum_content
bbp_forum_enforce_blocked
bbp_forum_enforce_hidden
bbp_forum_enforce_private
bbp_forum_form_fields
bbp_forum_freshness_link
bbp_forum_get_subforums
bbp_forum_id
bbp_forum_last_active_id
bbp_forum_last_active_time
bbp_forum_last_reply_author_id
bbp_forum_last_reply_author_link
bbp_forum_last_reply_id
bbp_forum_last_reply_permalink
bbp_forum_last_reply_title
bbp_forum_last_reply_url
bbp_forum_last_topic_author_link
bbp_forum_last_topic_id
bbp_forum_last_topic_permalink
bbp_forum_last_topic_title
bbp_forum_metabox
bbp_forum_pagination_count
bbp_forum_pagination_links
bbp_forum_parent_id
bbp_forum_permalink
bbp_forum_post_count
bbp_forum_post_type
bbp_forum_query_last_reply_id
bbp_forum_query_subforum_ids
bbp_forum_query_topic_ids
bbp_forum_replies_feed_link
bbp_forum_reply_count
bbp_forum_reply_count_hidden
bbp_forum_row_actions
bbp_forum_status
bbp_forum_subforum_count
bbp_forum_subscription_link
bbp_forum_subscriptions_handler
bbp_forum_subscriptions_metabox
bbp_forum_title
bbp_forum_topic_count
bbp_forum_topic_count_hidden
bbp_forum_topics_feed_link
bbp_forum_topics_link
bbp_forum_type
bbp_forum_visibility
bbp_forums
bbp_forums_url
bbp_generate_rewrite_rules
bbp_get_activity_actions
bbp_get_admin_link
bbp_get_admin_repair_tool_components
bbp_get_admin_repair_tool_overhead
bbp_get_admin_repair_tool_overhead_filters
bbp_get_admin_repair_tool_page
bbp_get_admin_repair_tool_page_id
bbp_get_admin_repair_tool_page_url
bbp_get_admin_repair_tool_registered_components
bbp_get_admin_repair_tool_registered_versions
bbp_get_admin_repair_tool_run_url
bbp_get_admin_repair_tool_status_filters
bbp_get_admin_repair_tool_version
bbp_get_admin_repair_tools
bbp_get_ajax_url
bbp_get_all_child_ids
bbp_get_allowed_tags
bbp_get_asset_version
bbp_get_author_display_name
bbp_get_author_email
bbp_get_author_ip
bbp_get_author_link
bbp_get_author_url
bbp_get_blocked_role
bbp_get_blog_roles
bbp_get_breadcrumb
bbp_get_cancel_reply_to_link
bbp_get_caps_for_role
bbp_get_child_counts
bbp_get_closed_status_id
bbp_get_component_name
bbp_get_config_location
bbp_get_converters
bbp_get_current_anonymous_user_data
bbp_get_current_template_pack
bbp_get_current_user_avatar
bbp_get_current_user_id
bbp_get_current_user_name
bbp_get_db_version
bbp_get_db_version_raw
bbp_get_default_options
bbp_get_default_role
bbp_get_default_user_options
bbp_get_displayed_user_field
bbp_get_displayed_user_id
bbp_get_do_not_reply_address
bbp_get_dropdown
bbp_get_dynamic_role_name
bbp_get_dynamic_roles
bbp_get_edit_lock
bbp_get_edit_rewrite_id
bbp_get_edit_slug
bbp_get_email_addresses_from_user_ids
bbp_get_email_header
bbp_get_empty_datetime
bbp_get_excluded_forum_ids
bbp_get_fallback_display_name
bbp_get_favorites_permalink
bbp_get_favorites_template
bbp_get_form_forum_content
bbp_get_form_forum_moderators
bbp_get_form_forum_parent
bbp_get_form_forum_status_dropdown
bbp_get_form_forum_subscribed
bbp_get_form_forum_title
bbp_get_form_forum_type
bbp_get_form_forum_type_dropdown
bbp_get_form_forum_visibility
bbp_get_form_forum_visibility_dropdown
bbp_get_form_option
bbp_get_form_reply_content
bbp_get_form_reply_edit_reason
bbp_get_form_reply_log_edit
bbp_get_form_reply_status_dropdown
bbp_get_form_reply_to
bbp_get_form_topic_content
bbp_get_form_topic_edit_reason
bbp_get_form_topic_forum
bbp_get_form_topic_log_edit
bbp_get_form_topic_status_dropdown
bbp_get_form_topic_subscribed
bbp_get_form_topic_tags
bbp_get_form_topic_title
bbp_get_form_topic_type_dropdown
bbp_get_forum
bbp_get_forum_ancestors
bbp_get_forum_archive_template
bbp_get_forum_archive_title
bbp_get_forum_author_display_name
bbp_get_forum_author_id
bbp_get_forum_caps
bbp_get_forum_class
bbp_get_forum_content
bbp_get_forum_edit_template
bbp_get_forum_freshness_link
bbp_get_forum_group_ids
bbp_get_forum_id
bbp_get_forum_last_active_id
bbp_get_forum_last_active_time
bbp_get_forum_last_reply_author_id
bbp_get_forum_last_reply_author_link
bbp_get_forum_last_reply_id
bbp_get_forum_last_reply_permalink
bbp_get_forum_last_reply_title
bbp_get_forum_last_reply_url
bbp_get_forum_last_topic_author_id
bbp_get_forum_last_topic_author_link
bbp_get_forum_last_topic_id
bbp_get_forum_last_topic_permalink
bbp_get_forum_last_topic_title
bbp_get_forum_pagination_count
bbp_get_forum_pagination_links
bbp_get_forum_parent_id
bbp_get_forum_permalink
bbp_get_forum_post_count
bbp_get_forum_post_type
bbp_get_forum_post_type_labels
bbp_get_forum_post_type_rewrite
bbp_get_forum_post_type_supports
bbp_get_forum_replies_feed_link
bbp_get_forum_reply_count
bbp_get_forum_reply_count_hidden
bbp_get_forum_slug
bbp_get_forum_status
bbp_get_forum_statuses
bbp_get_forum_subforum_count
bbp_get_forum_subscribers
bbp_get_forum_subscription_link
bbp_get_forum_title
bbp_get_forum_topic_count
bbp_get_forum_topic_count_hidden
bbp_get_forum_topics_feed_link
bbp_get_forum_topics_link
bbp_get_forum_type
bbp_get_forum_types
bbp_get_forum_visibilities
bbp_get_forum_visibility
bbp_get_forums_for_current_user
bbp_get_forums_url
bbp_get_global_object
bbp_get_global_post_field
bbp_get_group_forum_ids
bbp_get_group_forums_root_id
bbp_get_hidden_forum_ids
bbp_get_hidden_status_id
bbp_get_keymaster_role
bbp_get_logout_link
bbp_get_major_wp_version
bbp_get_moderator_forum_ids
bbp_get_moderator_ids
bbp_get_moderator_list
bbp_get_moderator_role
bbp_get_moderators
bbp_get_non_public_child_count
bbp_get_non_public_forum_statuses
bbp_get_non_public_reply_statuses
bbp_get_non_public_topic_statuses
bbp_get_orphan_status_id
bbp_get_page_by_path
bbp_get_paged
bbp_get_paged_rewrite_id
bbp_get_paged_slug
bbp_get_participant_role
bbp_get_pending_status_id
bbp_get_pending_upgrade_count
bbp_get_pending_upgrades
bbp_get_post_types
bbp_get_private_forum_ids
bbp_get_private_status_id
bbp_get_public_child_count
bbp_get_public_child_ids
bbp_get_public_child_last_id
bbp_get_public_forum_statuses
bbp_get_public_reply_statuses
bbp_get_public_status_id
bbp_get_public_topic_statuses
bbp_get_query_name
bbp_get_query_template
bbp_get_quicktags_settings
bbp_get_redirect_to
bbp_get_replies_pagination_base
bbp_get_replies_per_page
bbp_get_replies_per_rss_page
bbp_get_reply
bbp_get_reply_admin_links
bbp_get_reply_ancestor_id
bbp_get_reply_ancestors
bbp_get_reply_approve_link
bbp_get_reply_archive_slug
bbp_get_reply_author
bbp_get_reply_author_avatar
bbp_get_reply_author_display_name
bbp_get_reply_author_email
bbp_get_reply_author_id
bbp_get_reply_author_link
bbp_get_reply_author_role
bbp_get_reply_author_url
bbp_get_reply_caps
bbp_get_reply_class
bbp_get_reply_content
bbp_get_reply_edit_link
bbp_get_reply_edit_template
bbp_get_reply_edit_url
bbp_get_reply_excerpt
bbp_get_reply_forum_id
bbp_get_reply_id
bbp_get_reply_move_link
bbp_get_reply_move_template
bbp_get_reply_permalink
bbp_get_reply_position
bbp_get_reply_position_raw
bbp_get_reply_post_date
bbp_get_reply_post_type
bbp_get_reply_post_type_labels
bbp_get_reply_post_type_rewrite
bbp_get_reply_post_type_supports
bbp_get_reply_raw_revision_log
bbp_get_reply_revision_count
bbp_get_reply_revision_log
bbp_get_reply_revisions
bbp_get_reply_slug
bbp_get_reply_spam_link
bbp_get_reply_status
bbp_get_reply_statuses
bbp_get_reply_title
bbp_get_reply_title_fallback
bbp_get_reply_to
bbp_get_reply_to_dropdown
bbp_get_reply_to_link
bbp_get_reply_toggles
bbp_get_reply_topic_id
bbp_get_reply_topic_title
bbp_get_reply_trash_link
bbp_get_reply_url
bbp_get_request
bbp_get_root_slug
bbp_get_root_url
bbp_get_sanitize_val
bbp_get_search_pagination_base
bbp_get_search_pagination_count
bbp_get_search_pagination_links
bbp_get_search_query_args
bbp_get_search_results_url
bbp_get_search_rewrite_id
bbp_get_search_slug
bbp_get_search_template
bbp_get_search_terms
bbp_get_search_title
bbp_get_search_type_ids
bbp_get_search_url
bbp_get_single_forum_description
bbp_get_single_forum_template
bbp_get_single_reply_template
bbp_get_single_topic_description
bbp_get_single_topic_template
bbp_get_single_user_edit_template
bbp_get_single_user_template
bbp_get_single_view_template
bbp_get_spam_status_id
bbp_get_spectator_role
bbp_get_statistics
bbp_get_stickies
bbp_get_subscribers
bbp_get_subscriptions_permalink
bbp_get_subscriptions_template
bbp_get_super_stickies
bbp_get_tab_index
bbp_get_tab_index_attribute
bbp_get_teeny_mce_buttons
bbp_get_template_locations
bbp_get_template_part
bbp_get_template_stack
bbp_get_the_content
bbp_get_theme_compat_dir
bbp_get_theme_compat_id
bbp_get_theme_compat_name
bbp_get_theme_compat_templates
bbp_get_theme_compat_url
bbp_get_theme_compat_version
bbp_get_theme_package_id
bbp_get_time_since
bbp_get_tiny_mce_plugins
bbp_get_title_max_length
bbp_get_tools_admin_pages
bbp_get_tools_admin_tabs
bbp_get_topic
bbp_get_topic_admin_links
bbp_get_topic_approve_link
bbp_get_topic_archive_slug
bbp_get_topic_archive_template
bbp_get_topic_archive_title
bbp_get_topic_author
bbp_get_topic_author_avatar
bbp_get_topic_author_display_name
bbp_get_topic_author_email
bbp_get_topic_author_id
bbp_get_topic_author_link
bbp_get_topic_author_role
bbp_get_topic_author_url
bbp_get_topic_caps
bbp_get_topic_class
bbp_get_topic_close_link
bbp_get_topic_content
bbp_get_topic_edit_link
bbp_get_topic_edit_template
bbp_get_topic_edit_url
bbp_get_topic_engagements
bbp_get_topic_engagements_raw
bbp_get_topic_excerpt
bbp_get_topic_favorite_link
bbp_get_topic_favoriters
bbp_get_topic_forum_id
bbp_get_topic_forum_title
bbp_get_topic_freshness_link
bbp_get_topic_id
bbp_get_topic_last_active_id
bbp_get_topic_last_active_time
bbp_get_topic_last_reply_id
bbp_get_topic_last_reply_permalink
bbp_get_topic_last_reply_title
bbp_get_topic_last_reply_url
bbp_get_topic_lock_description
bbp_get_topic_merge_link
bbp_get_topic_merge_template
bbp_get_topic_pagination
bbp_get_topic_pagination_count
bbp_get_topic_pagination_links
bbp_get_topic_permalink
bbp_get_topic_post_count
bbp_get_topic_post_date
bbp_get_topic_post_type
bbp_get_topic_post_type_labels
bbp_get_topic_post_type_rewrite
bbp_get_topic_post_type_supports
bbp_get_topic_raw_revision_log
bbp_get_topic_replies_link
bbp_get_topic_reply_count
bbp_get_topic_reply_count_hidden
bbp_get_topic_reply_link
bbp_get_topic_revision_count
bbp_get_topic_revision_log
bbp_get_topic_revisions
bbp_get_topic_slug
bbp_get_topic_spam_link
bbp_get_topic_split_link
bbp_get_topic_split_template
bbp_get_topic_status
bbp_get_topic_statuses
bbp_get_topic_stick_link
bbp_get_topic_subscribers
bbp_get_topic_subscription_link
bbp_get_topic_tag_caps
bbp_get_topic_tag_description
bbp_get_topic_tag_edit_link
bbp_get_topic_tag_edit_template
bbp_get_topic_tag_id
bbp_get_topic_tag_link
bbp_get_topic_tag_list
bbp_get_topic_tag_name
bbp_get_topic_tag_names
bbp_get_topic_tag_slug
bbp_get_topic_tag_tax_id
bbp_get_topic_tag_tax_labels
bbp_get_topic_tag_tax_rewrite
bbp_get_topic_tag_tax_slug
bbp_get_topic_tag_template
bbp_get_topic_tags
bbp_get_topic_title
bbp_get_topic_toggles
bbp_get_topic_trash_link
bbp_get_topic_types
bbp_get_topic_voice_count
bbp_get_topics_pagination_base
bbp_get_topics_per_page
bbp_get_topics_per_rss_page
bbp_get_topics_url
bbp_get_total_users
bbp_get_trash_days
bbp_get_trash_status_id
bbp_get_unique_array_values
bbp_get_url_scheme
bbp_get_user_blog_role
bbp_get_user_display_role
bbp_get_user_engaged_topic_ids
bbp_get_user_engagements
bbp_get_user_engagements_rewrite_id
bbp_get_user_engagements_slug
bbp_get_user_engagements_url
bbp_get_user_favorites
bbp_get_user_favorites_link
bbp_get_user_favorites_rewrite_id
bbp_get_user_favorites_slug
bbp_get_user_favorites_topic_ids
bbp_get_user_forum_subscriptions
bbp_get_user_id
bbp_get_user_ids_from_nicenames
bbp_get_user_languages_dropdown
bbp_get_user_last_posted
bbp_get_user_nicename
bbp_get_user_nicenames_from_ids
bbp_get_user_object_ids
bbp_get_user_object_query
bbp_get_user_post_count
bbp_get_user_profile_edit_link
bbp_get_user_profile_edit_url
bbp_get_user_profile_link
bbp_get_user_profile_url
bbp_get_user_replies_created
bbp_get_user_replies_created_url
bbp_get_user_replies_rewrite_id
bbp_get_user_reply_count
bbp_get_user_reply_count_raw
bbp_get_user_rewrite_id
bbp_get_user_role
bbp_get_user_role_map
bbp_get_user_slug
bbp_get_user_subscribe_link
bbp_get_user_subscribed_forum_ids
bbp_get_user_subscribed_topic_ids
bbp_get_user_subscriptions
bbp_get_user_subscriptions_rewrite_id
bbp_get_user_subscriptions_slug
bbp_get_user_topic_count
bbp_get_user_topic_count_raw
bbp_get_user_topic_subscriptions
bbp_get_user_topics_created_url
bbp_get_user_topics_rewrite_id
bbp_get_user_topics_started
bbp_get_users_for_object
bbp_get_version
bbp_get_view_all
bbp_get_view_id
bbp_get_view_query_args
bbp_get_view_rewrite_id
bbp_get_view_slug
bbp_get_view_title
bbp_get_view_url
bbp_get_views
bbp_get_wp_login_action
bbp_get_wp_query
bbp_get_wp_roles
bbp_group_forums_root_id
bbp_group_is_admin
bbp_group_is_banned
bbp_group_is_creator
bbp_group_is_member
bbp_group_is_mod
bbp_has_errors
bbp_has_forums
bbp_has_replies
bbp_has_search_results
bbp_has_shortcode
bbp_has_topics
bbp_has_users
bbp_head
bbp_hide_forum
bbp_include_root_slug
bbp_includes
bbp_increase_forum_reply_count
bbp_increase_forum_reply_count_hidden
bbp_increase_forum_topic_count
bbp_increase_forum_topic_count_hidden
bbp_increase_topic_reply_count
bbp_increase_topic_reply_count_hidden
bbp_increase_user_reply_count
bbp_increase_user_topic_count
bbp_init
bbp_insert_forum
bbp_insert_reply
bbp_insert_reply_update_counts
bbp_insert_topic
bbp_insert_topic_update_counts
bbp_is_activation
bbp_is_ajax
bbp_is_akismet_active
bbp_is_anonymous
bbp_is_custom_post_type
bbp_is_deactivation
bbp_is_edit
bbp_is_engagements_active
bbp_is_favorites
bbp_is_favorites_active
bbp_is_forum
bbp_is_forum_archive
bbp_is_forum_category
bbp_is_forum_closed
bbp_is_forum_edit
bbp_is_forum_form_post_request
bbp_is_forum_group_forum
bbp_is_forum_hidden
bbp_is_forum_open
bbp_is_forum_private
bbp_is_forum_public
bbp_is_forum_status
bbp_is_forum_visibility
bbp_is_get_request
bbp_is_group_forums_active
bbp_is_install
bbp_is_intercepted
bbp_is_large_install
bbp_is_object_of_user
bbp_is_post_request
bbp_is_query_name
bbp_is_replies_created
bbp_is_reply
bbp_is_reply_anonymous
bbp_is_reply_edit
bbp_is_reply_form_post_request
bbp_is_reply_move
bbp_is_reply_pending
bbp_is_reply_private
bbp_is_reply_public
bbp_is_reply_published
bbp_is_reply_spam
bbp_is_reply_trash
bbp_is_search
bbp_is_search_results
bbp_is_single_forum
bbp_is_single_reply
bbp_is_single_topic
bbp_is_single_user
bbp_is_single_user_edit
bbp_is_single_user_engagements
bbp_is_single_user_profile
bbp_is_single_user_replies
bbp_is_single_user_topics
bbp_is_single_view
bbp_is_site_public
bbp_is_subscriptions
bbp_is_subscriptions_active
bbp_is_template_included
bbp_is_theme_compat_active
bbp_is_theme_compat_original_template
bbp_is_title_too_long
bbp_is_topic
bbp_is_topic_anonymous
bbp_is_topic_archive
bbp_is_topic_closed
bbp_is_topic_edit
bbp_is_topic_form_post_request
bbp_is_topic_merge
bbp_is_topic_open
bbp_is_topic_pending
bbp_is_topic_private
bbp_is_topic_public
bbp_is_topic_published
bbp_is_topic_spam
bbp_is_topic_split
bbp_is_topic_sticky
bbp_is_topic_super_sticky
bbp_is_topic_tag
bbp_is_topic_tag_edit
bbp_is_topic_trash
bbp_is_topics_created
bbp_is_update
bbp_is_user_active
bbp_is_user_deleted
bbp_is_user_engaged
bbp_is_user_favorite
bbp_is_user_forum_moderator
bbp_is_user_home
bbp_is_user_home_edit
bbp_is_user_inactive
bbp_is_user_keymaster
bbp_is_user_spammer
bbp_is_user_subscribed
bbp_is_user_subscribed_to_forum
bbp_is_user_subscribed_to_topic
bbp_is_valid_role
bbp_kses_allowed_tags
bbp_kses_data
bbp_list_forums
bbp_list_replies
bbp_load_textdomain
bbp_load_theme_functions
bbp_loaded
bbp_locate_enqueueable
bbp_locate_template
bbp_logged_in_redirect
bbp_login_form_login
bbp_login_notices
bbp_logout_link
bbp_logout_url
bbp_mail
bbp_make_clickable
bbp_make_emails_clickable
bbp_make_first_page_canonical
bbp_make_ftps_clickable
bbp_make_ham_user
bbp_make_mentions_clickable
bbp_make_mentions_clickable_callback
bbp_make_spam_user
bbp_make_urls_clickable
bbp_map_forum_meta_caps
bbp_map_meta_caps
bbp_map_primary_meta_caps
bbp_map_reply_meta_caps
bbp_map_topic_meta_caps
bbp_map_topic_tag_meta_caps
bbp_maybe_admin_setting_disabled
bbp_maybe_append_pending_upgrade_count
bbp_maybe_create_group_forum_root
bbp_maybe_delete_group_forum_root
bbp_maybe_get_root_slug
bbp_maybe_intercept
bbp_member_forums_engagements_content
bbp_member_forums_favorites_content
bbp_member_forums_replies_content
bbp_member_forums_screen_engagements
bbp_member_forums_screen_favorites
bbp_member_forums_screen_replies
bbp_member_forums_screen_subscriptions
bbp_member_forums_screen_topics
bbp_member_forums_subscriptions_content
bbp_member_forums_topics_content
bbp_mention_filter
bbp_merge_topic_count
bbp_merge_topic_form_fields
bbp_merge_topic_handler
bbp_metabox_user_links
bbp_moderator_assignment_metabox
bbp_moderator_list
bbp_move_reply_count
bbp_move_reply_form_fields
bbp_move_reply_handler
bbp_move_topic_handler
bbp_new_converter
bbp_new_forum_handler
bbp_new_reply_handler
bbp_new_site
bbp_new_topic_handler
bbp_no_title_status_hints
bbp_normalize_forum
bbp_notice_edit_user_is_super_admin
bbp_notice_edit_user_pending_email
bbp_notice_edit_user_success
bbp_notify_forum_subscribers
bbp_notify_subscribers
bbp_notify_topic_subscribers
bbp_number_format
bbp_number_format_i18n
bbp_number_not_negative
bbp_open_forum
bbp_open_topic
bbp_paginate_links
bbp_parse_args
bbp_parse_query
bbp_past_edit_lock
bbp_plugin_locale
bbp_post_request
bbp_posts_pre_query
bbp_pre_get_posts_normalize_forum_visibility
bbp_pre_handle_404
bbp_pre_load_options
bbp_privatize_forum
bbp_profile_update
bbp_profile_update_role
bbp_publicize_forum
bbp_query_post_parent__in
bbp_ready
bbp_recalculate_topic_engagements
bbp_redirect
bbp_redirect_canonical
bbp_redirect_login
bbp_redirect_to_field
bbp_register
bbp_register_admin_scripts
bbp_register_admin_settings
bbp_register_admin_styles
bbp_register_default_repair_tools
bbp_register_importers
bbp_register_meta
bbp_register_post_statuses
bbp_register_post_types
bbp_register_repair_tool
bbp_register_shortcodes
bbp_register_taxonomies
bbp_register_template_stack
bbp_register_theme_package
bbp_register_theme_packages
bbp_register_view
bbp_register_views
bbp_rel_nofollow
bbp_rel_nofollow_callback
bbp_remove_adjacent_posts
bbp_remove_all_filters
bbp_remove_all_users_from_all_objects
bbp_remove_caps
bbp_remove_forum_from_all_subscriptions
bbp_remove_forum_id_from_all_groups
bbp_remove_forum_id_from_group
bbp_remove_group_id_from_all_forums
bbp_remove_group_id_from_forum
bbp_remove_moderator
bbp_remove_object_from_all_users
bbp_remove_pending_upgrade
bbp_remove_roles
bbp_remove_topic_from_all_favorites
bbp_remove_topic_from_all_subscriptions
bbp_remove_user_engagement
bbp_remove_user_favorite
bbp_remove_user_forum_subscription
bbp_remove_user_from_all_objects
bbp_remove_user_from_object
bbp_remove_user_subscription
bbp_remove_user_topic_subscription
bbp_remove_view_all
bbp_repair_forum_visibility
bbp_replies
bbp_reply_admin_links
bbp_reply_ancestor_id
bbp_reply_approve_link
bbp_reply_author
bbp_reply_author_avatar
bbp_reply_author_display_name
bbp_reply_author_email
bbp_reply_author_id
bbp_reply_author_link
bbp_reply_author_role
bbp_reply_author_url
bbp_reply_class
bbp_reply_content
bbp_reply_content_append_revisions
bbp_reply_content_autoembed
bbp_reply_edit_link
bbp_reply_edit_url
bbp_reply_excerpt
bbp_reply_form_fields
bbp_reply_forum_id
bbp_reply_id
bbp_reply_metabox
bbp_reply_move_link
bbp_reply_permalink
bbp_reply_position
bbp_reply_post_date
bbp_reply_post_type
bbp_reply_revision_log
bbp_reply_spam_link
bbp_reply_status
bbp_reply_title
bbp_reply_to
bbp_reply_to_dropdown
bbp_reply_to_link
bbp_reply_topic_id
bbp_reply_topic_title
bbp_reply_trash_link
bbp_reply_url
bbp_request
bbp_request_feed_trap
bbp_reset_query_name
bbp_restore_all_filters
bbp_restore_current_site
bbp_rewrite
bbp_roles_init
bbp_sanitize_anonymous_post_author
bbp_sanitize_displayed_user_field
bbp_sanitize_search_request
bbp_sanitize_slug
bbp_sanitize_val
bbp_save_forum_extras
bbp_search_pagination_count
bbp_search_pagination_links
bbp_search_query
bbp_search_results
bbp_search_results_redirect
bbp_search_results_url
bbp_search_terms
bbp_search_title
bbp_search_url
bbp_set_200
bbp_set_404
bbp_set_current_anonymous_user_data
bbp_set_current_user_default_role
bbp_set_post_lock
bbp_set_query_name
bbp_set_template_included
bbp_set_theme_compat_active
bbp_set_theme_compat_original_template
bbp_set_theme_compat_template
bbp_set_theme_compat_templates
bbp_set_user_role
bbp_settings_integration
bbp_setup_admin
bbp_setup_akismet
bbp_setup_buddypress
bbp_setup_converter
bbp_setup_current_user
bbp_setup_engagements
bbp_setup_globals
bbp_setup_new_site
bbp_setup_option_filters
bbp_setup_theme
bbp_setup_theme_compat
bbp_setup_updater
bbp_setup_user_option_filters
bbp_show_lead_topic
bbp_show_on_root
bbp_show_topic_lock_alert
bbp_single_forum_description
bbp_single_topic_description
bbp_spam_reply
bbp_spam_topic
bbp_spam_topic_replies
bbp_spam_topic_tags
bbp_split_topic_count
bbp_split_topic_form_fields
bbp_split_topic_handler
bbp_stick_topic
bbp_subscriptions_handler
bbp_subscriptions_permalink
bbp_suppress_private_author_link
bbp_suppress_private_forum_meta
bbp_swap_no_js_body_class
bbp_switch_to_site
bbp_tab_index
bbp_tab_index_attribute
bbp_template_include
bbp_template_include_theme_compat
bbp_template_include_theme_supports
bbp_template_notices
bbp_template_redirect
bbp_the_content
bbp_the_forum
bbp_the_reply
bbp_the_search_result
bbp_the_topic
bbp_the_user
bbp_theme_compat_reset_post
bbp_thread_replies
bbp_thread_replies_depth
bbp_time_since
bbp_title
bbp_title_breadcrumb
bbp_title_max_length
bbp_toggle_reply
bbp_toggle_reply_handler
bbp_toggle_topic
bbp_toggle_topic_handler
bbp_tools_admin_tabs
bbp_tools_modify_menu_highlight
bbp_topic_admin_links
bbp_topic_approve_link
bbp_topic_archive_title
bbp_topic_author
bbp_topic_author_avatar
bbp_topic_author_display_name
bbp_topic_author_email
bbp_topic_author_id
bbp_topic_author_link
bbp_topic_author_role
bbp_topic_author_url
bbp_topic_class
bbp_topic_close_link
bbp_topic_content
bbp_topic_content_append_revisions
bbp_topic_content_autoembed
bbp_topic_edit_link
bbp_topic_edit_url
bbp_topic_engagements_metabox
bbp_topic_excerpt
bbp_topic_favorite_link
bbp_topic_favorites_metabox
bbp_topic_form_fields
bbp_topic_forum_id
bbp_topic_forum_title
bbp_topic_freshness_link
bbp_topic_id
bbp_topic_last_active_id
bbp_topic_last_active_time
bbp_topic_last_reply_id
bbp_topic_last_reply_permalink
bbp_topic_last_reply_title
bbp_topic_last_reply_url
bbp_topic_lock_description
bbp_topic_merge_link
bbp_topic_metabox
bbp_topic_notices
bbp_topic_pagination
bbp_topic_pagination_count
bbp_topic_pagination_links
bbp_topic_permalink
bbp_topic_post_count
bbp_topic_post_date
bbp_topic_post_type
bbp_topic_replies_link
bbp_topic_replies_metabox
bbp_topic_reply_count
bbp_topic_reply_count_hidden
bbp_topic_reply_link
bbp_topic_revision_log
bbp_topic_row_actions
bbp_topic_spam_link
bbp_topic_split_link
bbp_topic_status
bbp_topic_stick_link
bbp_topic_subscription_link
bbp_topic_subscriptions_metabox
bbp_topic_tag_description
bbp_topic_tag_edit_link
bbp_topic_tag_id
bbp_topic_tag_link
bbp_topic_tag_list
bbp_topic_tag_name
bbp_topic_tag_slug
bbp_topic_tag_tax_id
bbp_topic_title
bbp_topic_trash_link
bbp_topic_type_select
bbp_topic_voice_count
bbp_topics
bbp_topics_url
bbp_transition_post_status
bbp_translate_user_role
bbp_trash_forum
bbp_trash_forum_topics
bbp_trash_reply
bbp_trash_topic
bbp_trash_topic_replies
bbp_trashed_forum
bbp_trashed_reply
bbp_trashed_topic
bbp_unapprove_reply
bbp_unapprove_topic
bbp_uninstall
bbp_unspam_reply
bbp_unspam_topic
bbp_unspam_topic_replies
bbp_unspam_topic_tags
bbp_unstick_topic
bbp_untrash_forum
bbp_untrash_forum_topics
bbp_untrash_reply
bbp_untrash_topic
bbp_untrash_topic_replies
bbp_untrashed_forum
bbp_untrashed_reply
bbp_untrashed_topic
bbp_update_anonymous_post_author
bbp_update_forum
bbp_update_forum_group_ids
bbp_update_forum_id
bbp_update_forum_last_active_id
bbp_update_forum_last_active_time
bbp_update_forum_last_reply_id
bbp_update_forum_last_topic_id
bbp_update_forum_reply_count
bbp_update_forum_reply_count_hidden
bbp_update_forum_subforum_count
bbp_update_forum_topic_count
bbp_update_forum_topic_count_hidden
bbp_update_group_forum_ids
bbp_update_post_author_caches
bbp_update_post_family_caches
bbp_update_reply
bbp_update_reply_forum_id
bbp_update_reply_id
bbp_update_reply_position
bbp_update_reply_revision_log
bbp_update_reply_to
bbp_update_reply_to_id
bbp_update_reply_topic_id
bbp_update_reply_walker
bbp_update_topic
bbp_update_topic_anonymous_reply_count
bbp_update_topic_engagements
bbp_update_topic_forum_id
bbp_update_topic_id
bbp_update_topic_last_active_id
bbp_update_topic_last_active_time
bbp_update_topic_last_reply_id
bbp_update_topic_reply_count
bbp_update_topic_reply_count_hidden
bbp_update_topic_revision_log
bbp_update_topic_tag_count
bbp_update_topic_topic_id
bbp_update_topic_voice_count
bbp_update_topic_walker
bbp_update_user_last_posted
bbp_update_user_reply_count
bbp_update_user_topic_count
bbp_urlize_enqueueable
bbp_use_autoembed
bbp_use_pretty_urls
bbp_use_wp_editor
bbp_user_add_role_on_activate
bbp_user_add_role_on_invite
bbp_user_add_role_on_register
bbp_user_add_role_to_signup_meta
bbp_user_can_view_forum
bbp_user_display_role
bbp_user_edit_after
bbp_user_email_change_handler
bbp_user_engagements_interface
bbp_user_engagements_url
bbp_user_favorites_link
bbp_user_has_profile
bbp_user_id
bbp_user_languages_dropdown
bbp_user_last_posted
bbp_user_login_fields
bbp_user_lost_pass_fields
bbp_user_maybe_convert_pass
bbp_user_nicename
bbp_user_post_count
bbp_user_profile_edit_link
bbp_user_profile_edit_url
bbp_user_profile_link
bbp_user_profile_url
bbp_user_register
bbp_user_register_fields
bbp_user_replies_created_url
bbp_user_reply_count
bbp_user_subscribe_link
bbp_user_topic_count
bbp_user_topics_created_url
bbp_users
bbp_validate_activation_role
bbp_validate_registration_role
bbp_validate_reply_to
bbp_validate_signup_role
bbp_verify_nonce_request
bbp_version
bbp_version_bump
bbp_version_updater
bbp_view_id
bbp_view_query
bbp_view_title
bbp_view_url
bbp_widgets_init
bbp_wp_login_action
bbpress
buddypress
is_bbpress
str_split
BBCODE_CHECK
BBCODE_ENDTAG
BBCODE_EOI
BBCODE_LEXSTATE_TAG
BBCODE_LEXSTATE_TEXT
BBCODE_MODE_CALLBACK
BBCODE_MODE_ENHANCED
BBCODE_MODE_INTERNAL
BBCODE_MODE_LIBRARY
BBCODE_MODE_SIMPLE
BBCODE_NL
BBCODE_OPTIONAL
BBCODE_OUTPUT
BBCODE_PROHIBIT
BBCODE_RELEASE
BBCODE_REQUIRED
BBCODE_STACK_CLASS
BBCODE_STACK_TAG
BBCODE_STACK_TEXT
BBCODE_STACK_TOKEN
BBCODE_TAG
BBCODE_TEXT
BBCODE_VERBATIM
BBCODE_VERSION
BBCODE_WS
BBP_PLUGIN_DIR
BBP_TESTS_DIR
BP_FORUMS_PARENT_FORUM_ID
BP_FORUMS_SLUG
BP_TESTS_DIR
DOING_AJAX
WP_ROOT_DIR
WP_TESTS_CONFIG_PATH
WP_TESTS_DIR
_bbp_filter_locale(string $locale= '', $domain= '') : string
_bbp_has_forums_query(array $args = array()) : array
_bbp_has_replies_query(array $args = array()) : array
_bbp_has_replies_where(string $where= '', \WP_Query $query= false) : string
This function filters the 'post_where' of the WP_Query, and changes the query to include both the topic AND its children in the same loop.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r4058) | 
string
\WP_Query
string_bbp_has_topics_query(array $args = array()) : array
_load_bbpress()
This could maybe me earlier on muplugins_loaded but time will tell what
works best for us.
| package | bbPress | 
|---|
bbp_add_caps()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2608) | 
bbp_add_error(string $code= '', string $message= '', string $data= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3381) | 
| see | 
stringUnique code for the error message
stringTranslated error message
stringAny additional data passed with the error message
bbp_add_forum_id_to_group(integer $group_id= 0, $forum_id= 0)
bbp_add_forums_roles(\WP_Roles $wp_roles = null) : \WP_Roles
We do this to avoid adding these values to the database.
Note: bbPress is purposely assertive here, overwriting any keys & values that may already exist in the $wp_roles array.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4290) | 
\WP_RolesThe array of WP_Role objects that was initialized
\WP_RolesThe main $wp_roles globalbbp_add_group_id_to_forum($forum_id= 0, integer $group_id= 0)
bbp_add_moderator(integer $object_id= 0, integer $user_id= 0, string $object_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6056) | 
integerTraditionally a post ID
integerUser ID
stringType of meta (post,term,user,comment)
booleanbbp_add_pending_upgrade(string $upgrade_id = '') 
bbp_add_permastructs()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4918) | 
bbp_add_rewrite_rules()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4918) | 
bbp_add_roles()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2741) | 
| deprecated | 2.2.0 bbPress (r4164) | 
bbp_add_sticky_topics(\WP_Query $query, array $args = array()) 
bbp_add_template_stack_locations(array $stacks = array()) : \array()
bbp_add_user_engagement(integer $user_id= 0, integer $topic_id= 0) : boolean
Note that both the User and Topic should be verified to exist before using this function. Originally both were validated, but because this function is frequently used within a loop, those verifications were moved upstream to improve performance on topics with many engaged users.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. User id
integerOptional. Topic id
booleanAlways truebbp_add_user_favorite(integer $user_id= 0, integer $topic_id= 0) : boolean
Note that both the User and Topic should be verified to exist before using this function. Originally both were validated, but because this function is frequently used within a loop, those verifications were moved upstream to improve performance on topics with many engaged users.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic was added to user's favorites, otherwise falsebbp_add_user_form_role_field()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6674) | 
bbp_add_user_forum_subscription(integer $user_id= 0, integer $forum_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. User id
integerOptional. forum id
booleanAlways truebbp_add_user_subscription(integer $user_id= 0, integer $object_id= 0, string $type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6544) Added $type parameter | 
integerOptional. User id
integerOptional. Object id
stringOptional. Type of object being subscribed to
booleanTrue if the object was added to user subscriptions, otherwise falsebbp_add_user_to_object(integer $object_id= 0, integer $user_id= 0, string $rel_key= '', string $rel_type= 'post', boolean $unique= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe object id
integerThe user id
stringThe relationship key
stringThe relationship type (usually 'post')
booleanWhether meta key should be unique to the object
booleanReturns true on success, false on failurebbp_add_user_topic_subscription(integer $user_id= 0, integer $topic_id= 0) : boolean
Note that both the User and Topic should be verified to exist before using this function. Originally both were validated, but because this function is frequently used within a loop, those verifications were moved upstream to improve performance on topics with many engaged users.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. User id
integerOptional. Topic id
booleanAlways truebbp_add_view_all(string $original_link= '', boolean $force= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3325) | 
stringOriginal Link to be modified
booleanOverride bbp_get_view_all() check
stringThe link with 'view=all' appended if necessarybbp_admin()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r1000) | 
| since | 2.6.0 bbPress (r6598) Moved to actions.php | 
bbp_admin_forums(\WP_Screen $current_screen)
This is currently here to make hooking and unhooking of the admin UI easy. It could use dependency injection in the future, but for now this is easier.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2596) | 
\WP_ScreenCurrent screen object
bbp_admin_get_settings_fields() : array
bbp_admin_get_settings_fields_for_section(string $section_id = '') : mixed
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r4001) | 
| staticvar | array $fields All of the available fields | 
stringID of the section to get fields for
mixedFalse if section is invalid, array of fields otherwise.bbp_admin_get_settings_sections() : array
bbp_admin_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2827) | 
arrayOptional. See {@link bbp_get_admin_link()}
bbp_admin_repair_closed_topics() : array
Closed topics that are missing the post-meta "_bbp_status" key value "publish" result in unexpected behavior, primarily this would have only occurred if you had imported forums from another forum package previous to bbPress v2.6, https://bbpress.trac.wordpress.org/ticket/2577
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5668) | 
arrayAn array of the status code and the messagebbp_admin_repair_forum_hidden_reply_count() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6922) | 
| since | 2.6.0 bbPress (r6932) Rename to match the topic reply recount function | 
arrayAn array of the status code and the messagebbp_admin_repair_forum_reply_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_forum_topic_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_forum_visibility() : array
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4104) | 
arrayAn array of the status code and the messagebbp_admin_repair_freshness() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3040) | 
arrayAn array of the status code and the messagebbp_admin_repair_handler()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
bbp_admin_repair_list($type = 'repair') : array
Uses known filters to reduce the registered results down to the most finite set of tools.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayRepair list of optionsbbp_admin_repair_list_components_filter()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5885) | 
bbp_admin_repair_list_search_form()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5885) | 
bbp_admin_repair_list_versions_filter()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r6894) | 
bbp_admin_repair_page()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) Converted from bbPress 1.2 | 
| since | 2.6.0 bbPress (r5885) Upgraded to list-table UI | 
| todo | Use a real list table | 
bbp_admin_repair_sticky() : array
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4695) | 
arrayAn array of the status code and the messagebbp_admin_repair_tool_overhead_filters(array $args = array()) 
bbp_admin_repair_tool_run_url(string $component = array()) 
bbp_admin_repair_tool_status_filters(array $args = array()) 
bbp_admin_repair_tool_translate_component(string $component = '') : string
bbp_admin_repair_tool_translate_overhead(string $overhead = '') : string
bbp_admin_repair_tool_translate_version(string $version = '') : string
bbp_admin_repair_topic_hidden_reply_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2747) | 
arrayAn array of the status code and the messagebbp_admin_repair_topic_reply_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_topic_tag_count() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6256) | 
arrayAn array of the status code and the messagebbp_admin_repair_topic_voice_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_user_favorites() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_user_forum_subscriptions() : array
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5155) | 
arrayAn array of the status code and the messagebbp_admin_repair_user_reply_count() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
arrayAn array of the status code and the messagebbp_admin_repair_user_roles()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4340) | 
bbp_admin_repair_user_topic_count() : array
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3889) | 
arrayAn array of the status code and the messagebbp_admin_repair_user_topic_subscriptions() : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
arrayAn array of the status code and the messagebbp_admin_replies(\WP_Screen $current_screen)
This is currently here to make hooking and unhooking of the admin UI easy. It could use dependency injection in the future, but for now this is easier.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2596) | 
\WP_ScreenCurrent screen object
bbp_admin_reset_handler()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
bbp_admin_reset_query_feedback(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6758) | 
arrayArray of query, message, and possible responses
stringbbp_admin_separator()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2957) | 
bbp_admin_setting_callback_anonymous()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2737) | 
bbp_admin_setting_callback_buddypress_section()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3575) | 
bbp_admin_setting_callback_edit_slug()
| package | bbPress | 
|---|---|
| since | 2.6.2 bbPress (r6965) | 
bbp_admin_setting_callback_editlock()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2737) | 
bbp_admin_setting_callback_engagements()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2737) | 
bbp_admin_setting_callback_favorites()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_features_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_forum_mods()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5834) | 
bbp_admin_setting_callback_forum_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_global_access()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3378) | 
bbp_admin_setting_callback_group_forums()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3575) | 
bbp_admin_setting_callback_group_forums_root_id()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3575) | 
bbp_admin_setting_callback_include_root()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_per_page_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_per_rss_page_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_replies_per_page()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_replies_per_rss_page()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_reply_archive_slug()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4932) | 
bbp_admin_setting_callback_reply_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_revisions()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3412) | 
bbp_admin_setting_callback_root_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_root_slug_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_search()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4970) | 
bbp_admin_setting_callback_search_slug()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
bbp_admin_setting_callback_show_on_root()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_single_slug_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_subscriptions()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2737) | 
bbp_admin_setting_callback_subtheme_id()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3586) | 
bbp_admin_setting_callback_subtheme_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_super_mods()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6562) | 
bbp_admin_setting_callback_thread_replies_depth()
Replies will be threaded if depth is 2 or greater
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
bbp_admin_setting_callback_throttle()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2737) | 
bbp_admin_setting_callback_topic_archive_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_topic_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_topic_tag_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_topics_per_page()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_topics_per_rss_page()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_use_wp_editor()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3586) | 
bbp_admin_setting_callback_user_engagements_slug()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
bbp_admin_setting_callback_user_favs_slug()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4932) | 
bbp_admin_setting_callback_user_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_user_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_user_slug_section()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2786) | 
bbp_admin_setting_callback_user_subs_slug()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4932) | 
bbp_admin_setting_callback_view_slug()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
bbp_admin_settings_help()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3119) | 
bbp_admin_tool_box()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6273) | 
bbp_admin_tools_box()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6273) | 
bbp_admin_tools_converter_help()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5314) | 
bbp_admin_tools_feedback(string|\WP_Error $message, string $class= false, boolean $is_dismissible= true) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2613) | 
string\WP_ErrorA message to be displayed or {@link WP_Error}
stringOptional. A class to be added to the message div
booleanOptional. True to dismiss, false to persist
stringThe message HTMLbbp_admin_tools_repair_help()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5314) | 
bbp_admin_tools_reset_help()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5314) | 
bbp_admin_topics(\WP_Screen $current_screen)
This is currently here to make hooking and unhooking of the admin UI easy. It could use dependency injection in the future, but for now this is easier.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2596) | 
\WP_ScreenCurrent screen object
bbp_admin_upgrade_group_forum_relationships() : \If
Previously named: bbp_admin_repair_group_forum_relationships()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r4395) | 
\Ifa wp_error() occurs and no converted forums are foundbbp_admin_upgrade_user_engagements() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
arrayAn array of the status code and the messagebbp_admin_upgrade_user_favorites() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6174) | 
arrayAn array of the status code and the messagebbp_admin_upgrade_user_forum_subscriptions() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6193) | 
arrayAn array of the status code and the messagebbp_admin_upgrade_user_topic_subscriptions() : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6174) | 
arrayAn array of the status code and the messagebbp_after_setup_theme()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3732) | 
bbp_ajax_headers()
This was abstracted from bbp_do_ajax() for use in custom theme-side AJAX implementations.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6757) | 
bbp_ajax_response(boolean $success= false, string $content= '', $status= -1, array $extras= array())
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4542) | 
boolean
string
array
bbp_ajax_url()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4543) | 
bbp_allow_anonymous(boolean $default = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2659) | 
booleanOptional. Default value
booleanIs anonymous posting allowed?bbp_allow_content_edit(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6441) | 
booleanOptional. Default value false
booleanIs content editing allowed?bbp_allow_content_throttle(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6441) | 
booleanOptional. Default value false
booleanIs content throttling allowed?bbp_allow_forum_mods(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5834) | 
booleanOptional. Default value true.
booleanAre per-forum moderators allowed?bbp_allow_forums_of_user(array $forum_ids= array(), integer $user_id= 0) : array
This typically means private or hidden forums the user has moderation rights to, but it can be filtered to mean just about anything.
This function filters the return values of the following functions:
bbp_get_private_forum_ids()bbp_get_hidden_forum_ids()| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6426) | 
arrayForum IDs to check if the user ID is a moderator of
integerUser ID to check if is a moderator of forums
arraybbp_allow_global_access(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3378) | 
booleanOptional. Default value false
booleanIs global access allowed?bbp_allow_revisions(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3412) | 
booleanOptional. Default value true
booleanAre revisions allowed?bbp_allow_search(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4970) | 
booleanOptional. Default value true
booleanIs forum-wide searching allowed?bbp_allow_super_mods(boolean $default = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6562) | 
booleanOptional. Default value true.
booleanAre moderators allowed to edit users?bbp_allow_threaded_replies(boolean $default = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4964) | 
booleanOptional. Default value false
booleanAre threaded replies allowed?bbp_allowed_themes(array $themes) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2944) | 
array
arrayArray of allowed themesbbp_approve_reply(integer $reply_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5506) | 
integerReply id
mixedFalse or {@link WP_Error} on failure, reply id on successbbp_approve_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5503) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_approved_unapproved_topic_update_forum_reply_count(integer $topic_id = 0) : void
bbp_body_class(array $wp_classes= array(), array $custom_classes= false) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2926) | 
array
array
arrayBody Classesbbp_buddypress_add_notification(integer $reply_id= 0, integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $author_id= 0, boolean $is_edit= false, integer $reply_to= 0)
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
integer
integer
integer(not used)
array(not used)
integer
booleanUsed to bail if this gets hooked to an edit action
integer
bbp_buddypress_mark_notifications($action = '') : \If
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5155) | 
\Ifnot trying to mark a notification as readbbp_buffer_template_part(string $slug, string $name= null, $echo= true) : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5043) | 
string
string
stringbbp_bump_forum_reply_count(integer $forum_id= 0, integer $difference= 1, boolean $update_ancestors= true) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3825) | 
integerOptional. Forum id.
integerOptional. Default 1
booleanOptional. Default true
integerForum topic countbbp_bump_forum_reply_count_hidden(integer $forum_id= 0, integer $difference= 1, boolean $update_ancestors= true) : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6922) | 
integerOptional. Forum id.
integerOptional. Default 1
booleanOptional. Default true
integerForum topic countbbp_bump_forum_topic_count(integer $forum_id= 0, integer $difference= 1, boolean $update_ancestors= true) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3825) | 
integerOptional. Forum id.
integerOptional. Default 1
booleanOptional. Default true
integerForum topic countbbp_bump_forum_topic_count_hidden(integer $forum_id= 0, integer $difference= 1, boolean $update_ancestors= true) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3825) | 
integerOptional. Forum id.
integerOptional. Default 1
booleanOptional. Default true
integerForum topic countbbp_bump_topic_reply_count(integer $topic_id= 0, integer $difference= 1) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3825) | 
integerOptional. Topic id.
integerOptional. Default 1
integerTopic reply countbbp_bump_topic_reply_count_hidden(integer $topic_id= 0, integer $difference= 1) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3825) | 
integerOptional. Topic id.
integerOptional. Default 1
integerTopic hidden reply countbbp_bump_user_reply_count(integer $user_id= 0, integer $difference= 1)
bbp_bump_user_topic_count(integer $user_id= 0, integer $difference= 1)
bbp_cancel_reply_to_link($text = '') 
bbp_categorize_forum(integer $forum_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanFalse on failure, true on successbbp_check_for_blacklist($anonymous_data= array(), $author_id= 0, $title= '', $content= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3446) | 
| since | 2.6.0 bbPress (r6854) | 
| deprecated | 2.6.0 Use bbp_check_for_moderation() with strict flag set | 
bbp_check_for_duplicate(array $post_data = array()) : boolean
Check to make sure that a user is not making a duplicate post
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2763) | 
arrayContains information about the comment
booleanTrue if it is not a duplicate, false if it isbbp_check_for_flood(array $anonymous_data= array(), integer $author_id= 0) : boolean
Check to make sure that a user is not making too many posts in a short amount of time.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2734) | 
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerOptional. Supply if it's a post by a logged in user. Do not supply if supplying $anonymous_data.
booleanTrue if there is no flooding, false if there isbbp_check_for_moderation(array $anonymous_data= array(), integer $author_id= 0, string $title= '', string $content= '', mixed $strict= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3581) | 
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerTopic or reply author ID
stringThe title of the content
stringThe content being posted
mixedFalse for moderation_keys. True for disallowed_keys. String for custom keys.
booleanTrue if test is passed, false if failbbp_check_forum_edit()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3607) | 
bbp_check_post_lock(integer $post_id = 0) : integer
| package | bbPress | 
|---|---|
| see | |
| since | 2.6.0 bbPress (r6340) | 
integerID of the post to check for editing
integerFalse: not locked or locked by current user. Int: user ID of user with lock.bbp_check_reply_edit()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3605) | 
bbp_check_topic_edit()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3605) | 
bbp_check_topic_tag_edit()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3605) | 
bbp_check_user_edit()
This is hooked to 'bbp_template_redirect' and controls the conditions under which a user can edit another user (or themselves.) If these conditions are met, we assume a user cannot perform this task, and look for ways they can earn the ability to access this template.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3605) | 
bbp_chunk_emails(array $args = array()) : array
This middleware is useful because topics and forums with many subscribers run into problems with Bcc limits, and many hosting companies & third-party services limit the size of a Bcc audience to prevent spamming.
The default "chunk" size is 40 users per iteration, and can be filtered if desired. A future version of bbPress will introduce a setting to more easily tune this.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6918) | 
arrayOriginal arguments passed to wp_mail().
arraybbp_clean_post_cache(integer $post_id= null, \WP_Post $post= null)
Will call to clean the term object cache associated with the post ID.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r4040) | 
| since | 2.6.0 bbPress (r6053) Introduced the `$post_id` parameter. | 
integerThe post id.
\WP_PostThe WP_Post object.
bbp_clear_pending_upgrades()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6895) | 
bbp_close_forum(integer $forum_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerforum id
mixedFalse or {@link WP_Error} on failure, forum id on successbbp_close_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_code_trick(string $content = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4641) | 
stringTopic and reply content
stringPartially encoded contentbbp_code_trick_reverse(string $content = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4641) | 
stringTopic and reply content
stringPartially encoded contentbbp_convert_date(string $time, string $d= 'U', boolean $translate= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2544) | 
stringTime to convert
stringOptional. Default is 'U'. Either 'G', 'U', or php date format
booleanOptional. Default is false. Whether to translate the
stringReturns timestampbbp_converter_setting_callback_clean()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_convert_users()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbname()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbpass()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbport()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbprefix()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbserver()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_dbuser()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_delay_time()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_halt()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6599) | 
bbp_converter_setting_callback_main_section()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_platform()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_restart()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_converter_setting_callback_rows()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
bbp_create_initial_content(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3767) | 
arrayArray of arguments to override default values
bbp_current_anonymous_user_data(string $key = '') 
bbp_current_screen(\WP_Screen $current_screen = '') 
bbp_current_user_avatar(integer $size = 40) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2574) | 
integerSize of the avatar. Defaults to 40
bbp_current_user_can_access_anonymous_user_form() : boolean
bbp_current_user_can_access_create_forum_form() : boolean
bbp_current_user_can_access_create_reply_form() : boolean
bbp_current_user_can_access_create_topic_form() : boolean
bbp_current_user_can_publish_forums() : boolean
bbp_current_user_can_publish_replies() : boolean
bbp_current_user_can_publish_topics() : boolean
bbp_db() : object
This function is abstracted to avoid global touches to the primary database
class. bbPress supports WordPress's $wpdb global by default, and can be
filtered to support other configurations if needed.
| package | bbPress | 
|---|---|
| since | 2.5.8 bbPress (r5814) | 
objectbbp_db_version_raw()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3468) | 
bbp_decode_callback(array $matches = array()) : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4641) | 
| todo | Experiment with _wp_specialchars() | 
array
stringbbp_decrease_forum_reply_count(integer $forum_id = 0) : void
bbp_decrease_forum_reply_count_hidden(integer $forum_id = 0) : void
bbp_decrease_forum_topic_count(integer $forum_id = 0) : void
bbp_decrease_forum_topic_count_hidden(integer $forum_id = 0) : void
bbp_decrease_topic_reply_count(integer $topic_id = 0) : void
bbp_decrease_topic_reply_count_hidden(integer $topic_id = 0) : void
bbp_decrease_user_reply_count($reply_id = 0) 
bbp_decrease_user_topic_count($topic_id = 0) 
bbp_default_intercept() : string
| package | bbPress | 
|---|---|
| since | 2.6.0 | 
| staticvar | mixed $rand Null by default, random string on first call | 
stringbbp_delete_forum($forum_id = 0) 
This function is supplemental to the actual forum deletion which is handled by WordPress core API functions. It is used to clean up after a forum that is being deleted.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
bbp_delete_forum_topics(integer $forum_id = 0) : \If
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
integer
\Ifforum is not validbbp_delete_rewrite_rules()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4198) | 
bbp_delete_topic($topic_id = 0) 
This function is supplemental to the actual topic deletion which is handled by WordPress core API functions. It is used to clean up after a topic that is being deleted.
| package | bbPress | 
|---|
bbp_delete_topic_replies(integer $topic_id = 0) 
Usually you'll want to do this before the topic itself is deleted.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5405) | 
integer
bbp_deleted_forum($forum_id = 0) 
Try not to use this action. All meta & taxonomy terms have already been deleted, making them impossible to use.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
| since | 2.6.0 bbPress (r6526) Not recommend for usage | 
bbp_deleted_reply($reply_id = 0) 
bbp_deleted_topic($topic_id = 0) 
bbp_deregister_template_stack(string $location_callback= '', integer $priority= 10) : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4652) | 
stringCallback function that returns the
integer
booleanWhether stack was removedbbp_deregister_view(string $view) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringView name
booleanFalse if the view doesn't exist, true on successbbp_display_replies_feed_rss2(array $replies_query = array()) 
bbp_display_topics_feed_rss2(array $topics_query = array()) 
bbp_displayed_user_field(string $field= '', string $filter= 'display')
This function relies on the $filter parameter to decide how to sanitize the field value that it finds. Since it uses the WP_User object's magic __get() method, it can also be used to get user_meta values.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
stringField to get
stringHow to filter the field value (null|raw|db|display|edit)
bbp_do_ajax(string $action = '') : \If
This is largely taken from admin-ajax.php, but adapted specifically for theme-side bbPress-only AJAX requests.
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4543) | 
stringSanitized action from bbp_post_request/bbp_get_request
\Ifnot a bbPress AJAX requestbbp_do_not_redirect_edits(string $redirect_url = '') : string
| package | bbPress | 
|---|---|
| since | 2.7.0 bbPress (r7345) | 
stringThe redirect URL.
stringEmpty string if cancelling redirection.bbp_do_not_redirect_paginations(string $redirect_url = '') : string
| package | bbPress | 
|---|---|
| since | 2.7.0 bbPress (r7345) | 
stringThe redirect URL.
stringEmpty string if cancelling redirection.bbp_do_uninstall(integer $site_id = 0) 
bbp_doing_autosave() : boolean
| package | bbPress | 
|---|---|
| since | 2.6.7 (r7188) | 
booleanTrue if mid auto-save. False if not mid auto-save.bbp_doing_script_debug() : boolean
| package | bbPress | 
|---|---|
| since | 2.6.7 (r7188) | 
booleanTrue if debugging scripts. False if not debugging scripts.bbp_dropdown(array $args = array()) 
Can be used for any post type, but is mostly used for topics and forums.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
arraySee {@link bbp_get_dropdown()} for arguments
bbp_dummy_role_names()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress | 
bbp_edit_forum_handler(string $action = '') 
bbp_edit_lock(boolean $default = 5) 
bbp_edit_reply_handler(string $action = '') 
| package | bbPress | 
|---|
stringThe requested action to compare this function to id, anonymous data, reply author, bool true (for edit), and the reply to id
bbp_edit_topic_handler(string $action = '') 
bbp_edit_topic_tag_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2768) | 
stringThe requested action to compare this function to
bbp_edit_user_blog_role()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
bbp_edit_user_contact_methods() : string
bbp_edit_user_display_name()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
bbp_edit_user_email_send_notification($user_id= 0, $args= array())
bbp_edit_user_form_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2690) | 
bbp_edit_user_forums_role()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4284) | 
bbp_edit_user_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2790) | 
stringThe requested action to compare this function to
bbp_edit_user_language(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6488) | 
arraySee wp_dropdown_languages()
stringbbp_encode_bad(string $content = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4641) | 
stringTopic and reply content
stringPartially encoded contentbbp_encode_callback(array $matches = array()) : string
bbp_engagements_strategy(boolean $default = 'meta') : string
There are 3 possible strategies:
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6875) | 
booleanOptional. Default value false
stringHow to interact with engagementsbbp_enqueue_script(string $handle= '', string|boolean $file= '', array $deps= array(), string|boolean $ver= false, boolean $in_footer= false) : mixed
Registers the style if file provided (does NOT overwrite) and enqueues.
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5180) | 
stringName of the script.
stringbooleanRelative path to the script. Example: '/js/myscript.js'.
arrayAn array of registered handles this script depends on. Default empty array.
stringbooleanOptional. String specifying the script version number, if it has one. This parameter is used to ensure that the correct version is sent to the client regardless of caching, and so should be included if a version number is available and makes sense for the script.
booleanOptional. Whether to enqueue the script before or before
. Default 'false'. Accepts 'false' or 'true'.
mixedThe script filename if one is located. False if not.bbp_enqueue_scripts()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3373) | 
bbp_enqueue_style(string $handle= '', string|boolean $file= '', array $deps= array(), string|boolean $ver= false, string $media= 'all') : mixed
Registers the style if file provided (does NOT overwrite) and enqueues.
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5180) | 
stringName of the stylesheet.
stringbooleanRelative path to stylesheet. Example: '/css/mystyle.css'.
arrayAn array of registered style handles this stylesheet depends on. Default empty array.
stringbooleanString specifying the stylesheet version number, if it has one. This parameter is used to ensure that the correct version is sent to the client regardless of caching, and so should be included if a version number is available and makes sense for the stylesheet.
stringOptional. The media for which this stylesheet has been defined. Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', 'screen', 'tty', or 'tv'.
mixedThe style filename if one is located. False if not.bbp_exclude_forum_ids(string $type = 'string') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3291) | 
stringOptional. The type of value to return. (string|array|meta_query)
bbp_favorites_handler(string $action = '') 
bbp_favorites_permalink(integer $user_id = 0) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
| since | 2.6.0 bbPress (r6308) Add pagination if in the loop | 
integerOptional. User id
bbp_filter_anonymous_post_data(array $args = array()) : boolean | array
We use REMOTE_ADDR here directly. If you are behind a proxy, you should ensure that it is properly set, such as in wp-config.php, for your environment. See https://core.trac.wordpress.org/ticket/9235
Note that bbp_pre_anonymous_filters() is responsible for sanitizing each of the filtered core anonymous values here.
If there are any errors, those are directly added to \bbPress:errors
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2734) | 
arrayOptional. If no args are there, then $_POST values are
booleanarrayFalse on errors, values in an array on successbbp_filter_blog_editable_roles(array $all_roles = array()) : array
This used to use array_diff_assoc() but it randomly broke before 2.2 release. Need to research what happened, and if there's a way to speed this up.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4303) | 
arrayAll registered roles
arraybbp_filter_child_counts_list(integer $parent_id= 0, array $types= array('post'), array $statuses= array()) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6826) | 
integerID of post to get child counts from
arrayOptional. An array of post types to filter by
arrayOptional. An array of post statuses to filter by
arrayA list of objects or object fields.bbp_filter_column_headers(array $columns = array()) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5833) | 
arrayColumn headers fed into list-table objects
arrayPossibly altered column headersbbp_filter_dashboard_glance_items(array $elements = array()) : array
bbp_filter_default_option($default= false, $option= '', $passed_default= false) : mixed
This function should not be called directly.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r3451) | 
| access | private | 
mixedfalse if not overloaded, mixed if setbbp_filter_get_user_option(boolean $value= false, $option= '', $user= 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3910) | 
booleanOptional. Default value false
mixedfalse if not overloaded, mixed if setbbp_filter_is_single_user(boolean $is = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
booleanOptional. Default false
booleanTrue if viewing single user, false if notbbp_filter_is_user_home(boolean $is = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
booleanOptional. Default false
booleanTrue if viewing single user, false if notbbp_filter_kses(string $data = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4603) | 
stringContent to filter, expected to be escaped with slashes
stringFiltered contentbbp_filter_modify_page_title(string $new_title= '', string $old_title= '', string $sep= '') : string
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5161) | 
stringThe title to filter
string(Not used)
stringThe separator to use
stringThe possibly modified titlebbp_filter_notifications_get_registered_components(array $component_names = array()) : array
bbp_filter_pre_get_option(boolean $value= false, string $option= '') : mixed
This function should not be called directly.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3451) | 
| access | private | 
booleanDefault value false
stringName of the option
mixedfalse if not overloaded, mixed if setbbp_filter_sample_permalink(string $post_link, object $_post, boolean $leavename= false, boolean $sample= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3336) | 
stringCustom post type permalink
objectPost data object
booleanOptional, defaults to false. Whether to keep post name or page name.
booleanOptional, defaults to false. Is it a sample permalink.
stringThe custom post type permalinkbbp_filter_user_id(integer $user_id= 0, boolean $displayed_user_fallback= true, boolean $current_user_fallback= false) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
integer
boolean
boolean
integerUser IDbbp_filter_user_roles_option()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4363) | 
| deprecated | 2.6.0 bbPress (r6105) | 
| see | 
bbp_find_mentions(string $content = '') : boolean | array
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4323) | 
| deprecated | 2.6.0 bbp_make_clickable() | 
stringThe content
booleanarray$usernames Existing usernames. False if no matches.bbp_find_mentions_pattern() : string
Moved into its own function to allow filtering of the regex pattern anywhere mentions might be used.
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4997) | 
| deprecated | 2.6.0 bbp_make_clickable() | 
stringPattern to match usernames withbbp_fix_untrash_post_status(string $new_status= 'draft', integer $post_id= 0, string $previous_status= 'pending')
Fixes an issue since WordPress 5.6.0. See https://bbpress.trac.wordpress.org/ticket/3433.
| package | bbPress | 
|---|---|
| since | 2.6.10 bbPress (r7233) | 
stringNew status to use when untrashing. Default: 'draft'
integerPost ID
stringPrevious post status from '_wp_trash_meta_status' meta key. Default: 'pending'
bbp_form_forum_content()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3551) | 
bbp_form_forum_moderators()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5837) | 
bbp_form_forum_status_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
bbp_form_forum_subscribed()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
bbp_form_forum_title()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3551) | 
bbp_form_forum_type_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
bbp_form_forum_visibility()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
bbp_form_forum_visibility_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
bbp_form_option(string $option, string $default= '', boolean $slug= false)
bbp_form_reply_content()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3130) | 
bbp_form_reply_edit_reason()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3130) | 
bbp_form_reply_log_edit()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3130) | 
bbp_form_reply_status_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5399) | 
This function supports these arguments:
bbp_form_reply_to()
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
bbp_form_slug_conflict_check(string $slug, string $default)
bbp_form_topic_content()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2976) | 
bbp_form_topic_edit_reason()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2976) | 
bbp_form_topic_log_edit()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2976) | 
bbp_form_topic_status_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
This function supports these arguments:
bbp_form_topic_subscribed()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2976) | 
bbp_form_topic_title()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2976) | 
bbp_form_topic_type_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
This function supports these arguments:
bbp_format_activity_action_new_post(string $type= '', string $action= '', \BP_Activity_Activity $activity= false) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6370) | 
stringThe type of post. Expects topic or reply.
stringThe current action string.
\BP_Activity_ActivityThe BuddyPress activity object.
stringThe formatted activity action.bbp_format_activity_action_new_reply(string $action, object $activity) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6370) | 
stringThe current action string
objectThe BuddyPress activity object
stringThe formatted activity actionbbp_format_activity_action_new_topic(string $action, object $activity) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6370) | 
stringThe current action string
objectThe BuddyPress activity object
stringThe formatted activity action.bbp_format_buddypress_notifications(string $content, integer $item_id, integer $secondary_item_id, integer $action_item_count, string $format, string $component_action_name, string $component_name, integer $id)
| package | bbPress | 
|---|---|
| package | bbPress | 
| since | 2.5.0 bbPress (r5155) | 
stringComponent action. Deprecated. Do not do checks against this! Use the 6th parameter instead - $component_action_name.
integerNotification item ID.
integerNotification secondary item ID.
integerNumber of notifications with the same action.
stringFormat of return. Either 'string' or 'object'.
stringCanonical notification action.
stringNotification component ID.
integerNotification ID.
bbp_format_revision_reason(string $reason = '') : string
Does these things:
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
stringOptional. User submitted reason for editing.
stringStatus of topicbbp_format_user_display_name(string $display_name = '') : string
Abstracts mbstring library check and fallback to utf8_encode().
| package | bbPress | 
|---|---|
| link | https://bbpress.trac.wordpress.org/ticket/2141 | 
| since | 2.6.14 | 
stringThe author display
stringbbp_forum_archive_title(string $title = '') 
bbp_forum_class(integer $forum_id= 0, array $classes= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Forum ID.
arrayExtra classes you can pass when calling this function
bbp_forum_content(integer $forum_id = 0) 
bbp_forum_enforce_blocked()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2996) | 
bbp_forum_enforce_hidden()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2996) | 
bbp_forum_enforce_private()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2996) | 
bbp_forum_form_fields()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3553) | 
bbp_forum_freshness_link(integer $forum_id = 0) 
Outputs a complete link with attributes and content.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id
bbp_forum_get_subforums(array $args = array()) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2747) | 
arrayAll the arguments supported by {@link WP_Query}
mixedfalse if none, array of subs if yesbbp_forum_id($forum_id = 0) 
bbp_forum_last_active_id(integer $forum_id = 0) 
bbp_forum_last_active_time(integer $forum_id = 0) 
bbp_forum_last_reply_id(integer $forum_id = 0) 
bbp_forum_last_reply_permalink(integer $forum_id = 0) 
bbp_forum_last_reply_title(integer $forum_id = 0) 
bbp_forum_last_reply_url(integer $forum_id = 0) 
bbp_forum_last_topic_id(integer $forum_id = 0) 
bbp_forum_last_topic_permalink(integer $forum_id = 0) 
bbp_forum_last_topic_title(integer $forum_id = 0) 
bbp_forum_pagination_count()
The results are unescaped by design, to allow them to be filtered freely via the 'bbp_get_forum_pagination_count' filter.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2519) | 
bbp_forum_parent_id(integer $forum_id = 0) 
bbp_forum_permalink(integer $forum_id= 0, string $redirect_to= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringOptional. Pass a redirect value for use with shortcodes and other fun things.
bbp_forum_post_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
bbp_forum_post_type()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2857) | 
bbp_forum_query_last_reply_id(integer $forum_id= 0, integer $topic_ids= 0)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2908) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerForum id.
integerOptional. Topic ids.
bbp_forum_query_subforum_ids(integer $forum_id)
Only forums with published status are returned
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2908) | 
integerForum id
bbp_forum_query_topic_ids(integer $forum_id)
Only topics with published and closed statuses are returned
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2908) | 
integerForum id
bbp_forum_replies_feed_link(integer $forum_id = 0) 
bbp_forum_reply_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
bbp_forum_reply_count_hidden(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6922) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
bbp_forum_row_actions()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3653) | 
| todo | Links and filter | 
bbp_forum_status(integer $forum_id = 0) 
bbp_forum_subforum_count(integer $forum_id= 0, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id to check
booleanOptional. Whether or not to format the result
bbp_forum_subscription_link($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_forum_subscriptions_handler($action = '') 
bbp_forum_title(integer $forum_id = 0) 
bbp_forum_topic_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
bbp_forum_topic_count_hidden(integer $forum_id= 0, boolean $total_count= true, boolean $integer= null)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2883) | 
| since | 2.6.0 bbPress (r6922) Changed function signature to add total counts | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
bbp_forum_topics_feed_link(integer $forum_id = 0) 
bbp_forum_topics_link(integer $forum_id = 0) 
bbp_forum_type(integer $forum_id = 0) 
bbp_forum_visibility(integer $forum_id = 0) 
bbp_forums() : object
bbp_forums_url(string $path = '/') 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3979) | 
stringAdditional path with leading slash
bbp_generate_rewrite_rules(\WP_Rewrite $wp_rewrite)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
| deprecated | 2.4.0 bbPress (r4918) | 
\WP_Rewrite
bbp_get_activity_actions() : array
bbp_get_admin_link(array $args = array()) : \The
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2827) | 
arrayOptional. This function supports these arguments:
\Thelinkbbp_get_admin_repair_tool_components(array $item = array()) : array
bbp_get_admin_repair_tool_overhead(array $item = array()) : array
bbp_get_admin_repair_tool_overhead_filters(array $args = array()) : array
bbp_get_admin_repair_tool_page() : string
bbp_get_admin_repair_tool_page_id() : string
bbp_get_admin_repair_tool_page_url(array $args = array()) : string
bbp_get_admin_repair_tool_registered_components() : array
bbp_get_admin_repair_tool_registered_versions() : array
bbp_get_admin_repair_tool_run_url(string $component = array()) 
bbp_get_admin_repair_tool_status_filters(array $args = array()) : array
bbp_get_admin_repair_tool_version(array $item = array()) : array
bbp_get_admin_repair_tools(string $type = '') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5885) | 
stringrepair|upgrade The type of tools to get. Default empty for all tools.
arraybbp_get_ajax_url() : string
bbp_get_all_child_ids(integer $parent_id= 0, string $post_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3325) | 
integerParent id
stringPost type. Defaults to 'post'
arrayThe array of childrenbbp_get_asset_version()
| package | bbPress | 
|---|---|
| since | 2.6.7 bbPress (r7188) | 
| retrun | string The bbPress asset version | 
bbp_get_blocked_role() : string
bbp_get_blog_roles() : array
bbp_get_cancel_reply_to_link(string $text = '') : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
stringThe cancel text
stringThe cancellation linkbbp_get_caps_for_role(string $role = '') : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2994) | 
| todo | Map all of these and deprecate | 
stringOptional. Defaults to The role to load caps for
arrayCapabilities for $rolebbp_get_child_counts(integer $parent_id = 0) 
bbp_get_closed_status_id() : string
bbp_get_component_name() : string
This is used primarily for Notifications integration.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5232) | 
stringbbp_get_config_location(string $default = '') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3790) | 
stringOptional. Default empty string
stringThe location of the bb-config.php file, if anybbp_get_converters() : array
bbp_get_current_anonymous_user_data(string $key = '') : string | array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2734) | 
stringOptional. Which value to get? If not given, then an array is returned.
stringarrayCookie(s) for current posterbbp_get_current_template_pack() : \BBP_Theme_Compat
bbp_get_current_user_avatar(integer $size = 40) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2574) | 
integerSize of the avatar. Defaults to 40
stringCurrent user avatarbbp_get_current_user_id() : integer
bbp_get_current_user_name() : string
bbp_get_db_version()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3468) | 
| retrun | string The bbPress version | 
bbp_get_db_version_raw()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3468) | 
| retrun | string The current bbPress version | 
bbp_get_default_role(string $default = 'bbp_participant') : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4294) | 
stringOptional. Default value empty
stringThe default forums user rolebbp_get_displayed_user_field(string $field= '', string $filter= 'display') : string | boolean
This function relies on the $filter parameter to decide how to sanitize the field value that it finds. Since it uses the WP_User object's magic __get() method, it can also be used to get user_meta values.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
| see | for more on how the value is retrieved | 
| see | for more on how the value is sanitized | 
stringField to get
stringHow to filter the field value (null|raw|db|display|edit)
stringbooleanValue of the field if it exists, else falsebbp_get_displayed_user_id() : integer
bbp_get_do_not_reply_address() : string
We make some educated guesses here based on the home URL. Filters are
available to customize this address further. In the future, we may consider
using admin_email instead, though this is not normally publicized.
We use $_SERVER['SERVER_NAME'] here to mimic similar functionality in
WordPress core. Previously, we used get_home_url() to use already validated
user input, but it was causing issues in some installations.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5409) | 
| see | |
| see | |
| link | https://bbpress.trac.wordpress.org/ticket/2618 | 
stringbbp_get_dropdown(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
arrayThe function supports these args:
stringThe dropdownbbp_get_dynamic_role_name(string $role_id = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4792) | 
| since | 2.6.0 bbPress (r6117) Use bbp_translate_user_role() | 
string
stringTranslated role namebbp_get_dynamic_roles() : array
Simple function who's main purpose is to allow filtering of the list of forum roles so that plugins can remove inappropriate ones depending on the situation or user making edits.
Specifically because without filtering, anyone with the edit_users capability can edit others to be administrators, even if they are only editors or authors. This filter allows admins to delegate user management.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4284) | 
| since | 2.6.0 bbPress (r6117) Use bbpress()->roles | 
arraybbp_get_edit_lock(boolean $default = 5) : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6868) | 
booleanOptional. Default value 5
integerIs anonymous posting allowed?bbp_get_edit_rewrite_id() : string
bbp_get_edit_slug(string $default = 'edit') : string
| package | bbPress | 
|---|---|
| since | 2.6.2 bbPress (r6965) | 
stringOptional. Default value 'edit'
stringbbp_get_email_addresses_from_user_ids(array $user_ids = array()) : array
bbp_get_email_header() : string
bbp_get_empty_datetime() : string
bbp_get_excluded_forum_ids() : array
bbp_get_fallback_display_name(integer $object_id = 0) : string
This might happen if a user was deleted but their content was retained, or if something went wrong during saving anonymous user data to the database.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6561) | 
integerFor additional context only, usually a post ID
stringbbp_get_favorites_permalink(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
| since | 2.6.0 bbPress (r6308) Add pagination if in the loop | 
integerOptional. User id
stringPermanent link to user profile pagebbp_get_favorites_template() : string
bbp_get_form_forum_content() : string
bbp_get_form_forum_moderators() : string
bbp_get_form_forum_parent() : string
bbp_get_form_forum_status_dropdown($args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
stringHTML select list for selecting forum statusbbp_get_form_forum_subscribed() : string
bbp_get_form_forum_title() : string
bbp_get_form_forum_type() : string
bbp_get_form_forum_type_dropdown($args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
stringHTML select list for selecting forum typebbp_get_form_forum_visibility() : string
bbp_get_form_forum_visibility_dropdown($args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
This function supports these arguments:
stringHTML select list for selecting forum visibilitybbp_get_form_option(string $option, string $default= '', boolean $is_slug= false) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3203) | 
string
string
boolean
mixedbbp_get_form_reply_content() : string
bbp_get_form_reply_edit_reason() : string
bbp_get_form_reply_log_edit() : string
bbp_get_form_reply_status_dropdown($args = array()) 
This dropdown is only intended to be seen by users with the 'moderate' capability. Because of this, no additional capability checks are performed within this function to check available reply statuses.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5399) | 
This function supports these arguments:
bbp_get_form_reply_to() : string
bbp_get_form_topic_content() : string
bbp_get_form_topic_edit_reason() : string
bbp_get_form_topic_forum() : string
bbp_get_form_topic_log_edit() : string
bbp_get_form_topic_status_dropdown($args = array()) 
This dropdown is only intended to be seen by users with the 'moderate' capability. Because of this, no additional capability checks are performed within this function to check available topic statuses.
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
This function supports these arguments:
bbp_get_form_topic_subscribed() : string
bbp_get_form_topic_title() : string
bbp_get_form_topic_type_dropdown($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
This function supports these arguments:
bbp_get_forum(integer|object $forum, string $output= OBJECT, string $filter= 'raw') : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2787) | 
integerobjectforum id or forum object
stringOptional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
stringOptional Sanitation filter. See {@link sanitize_post()}
mixedNull if error or forum (in specified form) if successbbp_get_forum_ancestors(integer $forum_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id
arrayForum ancestorsbbp_get_forum_archive_template() : string
bbp_get_forum_archive_title(string $title = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3249) | 
stringDefault text to use as title
stringThe forum archive titlebbp_get_forum_caps() : array
bbp_get_forum_class(integer $forum_id= 0, array $classes= array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Forum ID
arrayExtra classes you can pass when calling this function
stringRow class of the forumbbp_get_forum_content(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2780) | 
integerOptional. Topic id
stringContent of the forumbbp_get_forum_edit_template() : string
bbp_get_forum_freshness_link(integer $forum_id = 0) 
Returns a complete link with attributes and content.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id
bbp_get_forum_group_ids(integer $forum_id = 0) 
bbp_get_forum_id($forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
Optional. Used to check emptiness
integerThe forum idbbp_get_forum_last_active_id(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
integerOptional. Forum id the last active id and forum id
integerForum's last active idbbp_get_forum_last_active_time(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringForum last update date/time (freshness)bbp_get_forum_last_reply_id(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
integerForum's last reply idbbp_get_forum_last_reply_permalink(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringPermanent link to the forum's last replybbp_get_forum_last_reply_title(integer $forum_id = 0) : string
bbp_get_forum_last_reply_url(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2683) | 
integerOptional. Forum id
stringPaginated URL to latest replybbp_get_forum_last_topic_id(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
integerForum's last topic idbbp_get_forum_last_topic_permalink(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringPermanent link to topicbbp_get_forum_last_topic_title(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id
stringForum's last topic's titlebbp_get_forum_pagination_count() : string
bbp_get_forum_pagination_links() : string
bbp_get_forum_parent_id(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3675) | 
integerOptional. Forum id
integerForum parentbbp_get_forum_permalink(integer $forum_id= 0, string $redirect_to= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringOptional. Pass a redirect value for use with shortcodes and other fun things.
stringPermanent link to forumbbp_get_forum_post_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
integerForum post countbbp_get_forum_post_type() : string
bbp_get_forum_post_type_labels() : array
bbp_get_forum_post_type_rewrite() : array
bbp_get_forum_post_type_supports() : array
bbp_get_forum_replies_feed_link(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3172) | 
integerOptional. Forum ID.
stringbbp_get_forum_reply_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
integerForum reply countbbp_get_forum_reply_count_hidden(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6922) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
integerForum reply countbbp_get_forum_slug(string $default = 'forum') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'forum'
stringbbp_get_forum_status(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Forum id
stringStatus of forumbbp_get_forum_statuses(integer $forum_id = 0) : array
Developers note: these statuses are actually stored as meta data, and Visibilities are stored in post_status.
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
integerOptional. Forum id.
arraybbp_get_forum_subforum_count(integer $forum_id= 0, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
booleanOptional. Whether or not to format the result
integerForum's subforum countbbp_get_forum_subscribers(integer $forum_id = 0) : array | boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. forum id
arraybooleanResults if the forum has any subscribers, otherwise falsebbp_get_forum_subscription_link($args = array()) 
A custom wrapper for bbp_get_user_subscribe_link()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_get_forum_title(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
stringTitle of forumbbp_get_forum_topic_count(integer $forum_id= 0, boolean $total_count= true, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count? Defaults to total.
booleanOptional. Whether or not to format the result
integerForum topic countbbp_get_forum_topic_count_hidden(integer $forum_id= 0, boolean $total_count= true, boolean $integer= null) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2883) | 
| since | 2.6.0 bbPress (r6922) Changed function signature to add total counts | 
integerOptional. Forum id
booleanOptional. To get the total count or normal count?
booleanOptional. Whether or not to format the result
integerTopic hidden topic countbbp_get_forum_topics_feed_link(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3172) | 
integerOptional. Forum ID.
stringbbp_get_forum_topics_link(integer $forum_id = 0) 
bbp_get_forum_type(integer $forum_id = 0) : boolean
..)
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3563) | 
integerOptional. Forum id
booleanWhether the forum is a category or notbbp_get_forum_types(integer $forum_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
integerOptional. Forum id.
arraybbp_get_forum_visibilities(integer $forum_id = 0) : array
Developers note: these visibilities are actually stored in post_status, and Statuses are stored in meta data.
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
integerOptional. Forum id.
arraybbp_get_forum_visibility(integer $forum_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2997) | 
integerOptional. Forum id
stringStatus of forumbbp_get_forums_for_current_user(array $args = array()) : array
bbp_get_forums_url(string $path = '/') 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3979) | 
stringAdditional path with leading slash
bbp_get_global_object(string $name= '', string $type= '', mixed $default= null) : mixed
| package | bbPress | 
|---|---|
| since | 2.5.8 bbPress (r5814) | 
stringName of global variable
stringType of variable to check with is_a()
mixedDefault value to return if no global found
mixedVerified object if valid, Default or null if invalidbbp_get_global_post_field(string $field= 'ID', string $context= 'edit') : string
Used most frequently when editing a forum/topic/reply
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3694) | 
stringName of the key
stringHow to sanitize - raw|edit|db|display|attribute|js
stringField valuebbp_get_group_forum_ids(integer $group_id = 0) 
bbp_get_group_forums_root_id(boolean $default = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3575) | 
booleanOptional. Default value 0
integerThe post ID for the root forumbbp_get_hidden_forum_ids()
Only hidden forum ids are returned. Public and private ids are not.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3007) | 
bbp_get_hidden_status_id() : string
bbp_get_keymaster_role() : string
bbp_get_logout_link(string $redirect_to = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2827) | 
stringRedirect to url redirect to url
stringThe logout linkbbp_get_major_wp_version() : string
bbp_get_moderator_forum_ids(integer $user_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5834) | 
integerUser id.
arrayReturn array of forum ids, or empty arraybbp_get_moderator_ids(integer $object_id= 0, string $object_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6056) | 
integerTraditionally a post ID
stringType of meta (post,term,user,comment)
arraybbp_get_moderator_list(integer $object_id= 0, array $args= array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress | 
integerOptional. Object id
arrayThis function supports these arguments:
stringModerator list of the objectbbp_get_moderator_role() : string
bbp_get_moderators(integer $object_id= 0, string $object_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6056) | 
integerTraditionally a post ID
stringType of meta (post,term,user,comment)
arraybbp_get_non_public_child_count(integer $parent_id= 0, string $post_type= 'post') : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2868) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerParent id.
stringPost type. Defaults to 'post'.
integerThe number of childrenbbp_get_non_public_forum_statuses() : array
bbp_get_non_public_reply_statuses() : array
bbp_get_non_public_topic_statuses() : array
bbp_get_orphan_status_id() : string
bbp_get_page_by_path(string $path = '') : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3304) | 
string
mixedFalse if no page, Page object if truebbp_get_paged() : integer
bbp_get_paged_rewrite_id() : string
bbp_get_paged_slug() : string
bbp_get_participant_role() : string
bbp_get_pending_status_id() : string
bbp_get_pending_upgrade_count(string $type = '') : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6895) | 
stringType of pending upgrades (upgrade|repair|empty)
integerbbp_get_pending_upgrades(string $type = '') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6895) | 
stringType of pending upgrades (upgrade|repair|empty)
arraybbp_get_post_types(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6813) | 
arrayArray of arguments to pass into get_post_types()
arraybbp_get_private_forum_ids()
Only private forum ids are returned. Public and hidden ids are not.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3007) | 
bbp_get_private_status_id() : string
bbp_get_public_child_count(integer $parent_id= 0, string $post_type= 'post') : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2868) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerParent id.
stringPost type. Defaults to 'post'.
integerThe number of childrenbbp_get_public_child_ids(integer $parent_id= 0, string $post_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2868) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerParent id.
stringPost type. Defaults to 'post'.
arrayThe array of childrenbbp_get_public_child_last_id(integer $parent_id= 0, string $post_type= 'post') : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2868) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerParent id.
stringPost type. Defaults to 'post'.
integerThe last active post_idbbp_get_public_forum_statuses() : array
bbp_get_public_reply_statuses() : array
bbp_get_public_status_id() : string
bbp_get_public_topic_statuses() : array
bbp_get_query_name() : string
bbp_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 bbp_locate_template(). Allows for more generic template locations without the use of the other get_*_template() functions.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3629) | 
stringFilename without extension.
arrayAn optional list of template candidates
stringFull path to file.bbp_get_redirect_to() : string
bbp_get_replies_pagination_base(integer $topic_id = 0) : string
bbp_get_replies_per_page(integer $default = 15) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3540) | 
integerDefault replies per page (15)
integerbbp_get_replies_per_rss_page(integer $default = 25) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3540) | 
integerDefault replies per page (25)
integerbbp_get_reply(integer|object $reply, string $output= OBJECT, string $filter= 'raw') : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2787) | 
integerobjectreply id or reply object
stringOptional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
stringOptional Sanitation filter. See {@link sanitize_post()}
mixedNull if error or reply (in specified form) if successbbp_get_reply_admin_links(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
arrayThis function supports these arguments:
stringReply admin linksbbp_get_reply_ancestor_id(\in $reply_id = 0) 
bbp_get_reply_ancestors(integer $reply_id = 0) : array
Because settings can be changed, this function does not care if hierarchical replies are active or to what depth.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5390) | 
integer
arraybbp_get_reply_approve_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5507) | 
arrayThis function supports these args:
stringReply approve linkbbp_get_reply_archive_slug(string $default = 'replies') : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4925) | 
stringOptional. Default value 'replies'
stringbbp_get_reply_caps() : array
bbp_get_reply_class(integer $reply_id= 0, array $classes= array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2678) | 
integerOptional. Reply ID
arrayExtra classes you can pass when calling this function
stringRow class of the replybbp_get_reply_content(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2780) | 
integerOptional. reply id
stringContent of the replybbp_get_reply_edit_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arrayThis function supports these arguments:
stringReply edit linkbbp_get_reply_edit_template() : string
bbp_get_reply_edit_url(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
integerOptional. Reply id
stringReply edit urlbbp_get_reply_excerpt(integer $reply_id= 0, integer $length= 100) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2751) | 
integerOptional. Reply id
integerOptional. Length of the excerpt. Defaults to 100 letters
stringReply Excerptbbp_get_reply_forum_id(integer $reply_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2679) | 
integerOptional. Reply id
integerThe forum id of the replybbp_get_reply_id($reply_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
Optional. Used to check emptiness
integerThe reply idbbp_get_reply_move_link(array $args = array()) : string
Return the move link of the reply
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4521) | 
arrayThis function supports these arguments:
stringReply move linkbbp_get_reply_move_template() : string
bbp_get_reply_permalink(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
integerOptional. Reply id
stringPermanent link to replybbp_get_reply_position(integer $reply_id= 0, integer $topic_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2984) | 
integerOptional. Reply id
integerOptional. Topic id
integerReply positionbbp_get_reply_position_raw(integer $reply_id= 0, integer $topic_id= 0)
bbp_get_reply_post_date(integer $reply_id= 0, boolean $humanize= false, boolean $gmt= false) : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4155) | 
integerOptional. Reply id.
booleanOptional. Humanize output using time_since
booleanOptional. Use GMT
stringbbp_get_reply_post_type() : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2857) post type id | 
stringThe unique reply post type idbbp_get_reply_post_type_labels() : array
bbp_get_reply_post_type_rewrite() : array
bbp_get_reply_post_type_supports() : array
bbp_get_reply_raw_revision_log(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Reply id
stringRaw revision log of the replybbp_get_reply_revision_count(integer $reply_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Reply id
booleanOptional. Whether or not to format the result
stringreply revision countbbp_get_reply_revision_log(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Reply id
stringRevision log of the replybbp_get_reply_revisions(integer $reply_id = 0) : array<mixed,\WP_Post> | array<mixed,integer>
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Reply id
array<mixed,\WP_Post>array<mixed,integer>reply revisionsbbp_get_reply_slug(string $default = 'reply') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'reply'
stringbbp_get_reply_spam_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arrayThis function supports these arguments:
stringReply spam linkbbp_get_reply_status(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Reply id
stringStatus of replybbp_get_reply_statuses(integer $reply_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5399) | 
integerOptional. Reply id.
arraybbp_get_reply_title(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
integerOptional. Reply id
stringTitle of replybbp_get_reply_title_fallback(string $post_title= '', integer $post_id= 0) : string
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5177) | 
stringRequired. Reply Title
integerRequired. Reply ID
stringTitle of replybbp_get_reply_to(integer $reply_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
integerOptional. Reply id
integerThe parent reply id of the replybbp_get_reply_to_dropdown(integer $reply_id = 0) : string
bbp_get_reply_to_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
arrayArguments
stringLink for a reply to a replybbp_get_reply_toggles(integer $reply_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6133) | 
integerOptional. Reply id.
arraybbp_get_reply_topic_id(integer $reply_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
integerOptional. Reply id
integerThe topic id of the replybbp_get_reply_topic_title(integer $reply_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
integerOptional. Reply id
stringThe topic title of the replybbp_get_reply_trash_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arrayThis function supports these arguments:
stringReply trash linkbbp_get_reply_url(integer $reply_id= 0, string $redirect_to= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2679) | 
integerOptional. Reply id
stringOptional. Pass a redirect value for use with shortcodes and other fun things.
stringLink to reply relative to paginated topicbbp_get_request()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4550) | 
bbp_get_root_slug(string $default = 'forums') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'forums'
stringbbp_get_root_url() : string
bbp_get_sanitize_val(string $request= '', string $input_type= 'text') : string
Use the $input_type parameter to properly process the value. This ensures correct sanitization of the value for the receiving input.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
stringName of $_REQUEST to look for
stringType of input. Default: text. Accepts: textarea|password|select|radio|checkbox
stringSanitized value ready for screen displaybbp_get_search_pagination_base() : string
bbp_get_search_pagination_count() : string
bbp_get_search_pagination_links() : string
bbp_get_search_query_args() : array
bbp_get_search_results_url() : string
bbp_get_search_rewrite_id() : string
bbp_get_search_slug(string $default = 'search') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
stringOptional. Default value 'search'
stringbbp_get_search_template() : string
bbp_get_search_terms(string $passed_terms = '') : boolean | string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) If search terms are supplied, those are used. Otherwise check the search rewrite id query var. | 
stringOptional. Search terms
booleanstringSearch terms on success, false on failurebbp_get_search_type_ids() : array
bbp_get_search_url() : string
bbp_get_single_forum_description(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
arrayThis function supports these arguments:
stringFiltered forum descriptionbbp_get_single_forum_template() : string
bbp_get_single_reply_template() : string
bbp_get_single_topic_description(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
arrayThis function supports these arguments:
stringFiltered topic descriptionbbp_get_single_topic_template() : string
bbp_get_single_user_edit_template() : string
bbp_get_single_user_template() : string
bbp_get_single_view_template() : string
bbp_get_spam_status_id() : string
bbp_get_spectator_role() : string
bbp_get_statistics(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2769) | 
| since | 2.6.0 bbPress (r6055) Added: `count_pending_topics` `count_pending_replies` | 
| since | 2.6.10 bbPress (r7235) Renamed: `count_trashed_topics` to `count_trash_topics` `count_trashed_replies` to `count_trash_replies` `count_spammed_topics` to `count_spam_topics` `count_spammed_replies` to `count_spam_replies` Added: `count_hidden_topics` `count_hidden_replies` | 
arrayOptional. The function supports these arguments (all default to true):
arrayArray of statisticsbbp_get_stickies(integer $forum_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2592) | 
integerOptional. If not passed, super stickies are returned.
arrayIDs of sticky topics of a forum or super stickiesbbp_get_subscribers(integer $object_id= 0, $type= 'post')
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5156) | 
integerOptional. ID of object (forum, topic, or something else)
bbp_get_subscriptions_permalink(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
| since | 2.6.0 bbPress (r6308) Add pagination if in the loop | 
integerOptional. User id
stringPermanent link to user subscriptions pagebbp_get_subscriptions_template() : string
bbp_get_super_stickies() : array
bbp_get_tab_index(integer $auto_increment = true) : integer
Use this function to handle the tab indexing of user facing forms within a template file. Calling this function will automatically increment the global tab index by default.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2810) | 
| deprecated | 2.6.0 bbPress (r5561) | 
| link | Trac Ticket | 
integerOptional. Default true. Set to false to prevent the increment
integer$bbp->tab_index The global tab indexbbp_get_tab_index_attribute(mixed $tab = false) : string
This helper function is in use, but it is generally considered impolite to override the "tabindex" attribute beyond what the browser naturally assigns.
Most internal usages pass false which results in no attribute being used.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6424) | 
mixedFalse to skip, any integer to use
stringbbp_get_template_locations(array $templates = array()) : array
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3738) | 
arrayTemplates we are looking for
arrayPossible subdirectories to look inbbp_get_template_part(string $slug, string $name = null) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3032) | 
string
stringOptional. Default null
bbp_get_template_stack() : array
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4323) | 
| since | 2.6.0 bbPress (r5944) Added support for `WP_Hook` | 
| 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 | 
arrayThe filtered value after all hooked functions are applied to it.bbp_get_the_content(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3586) | 
array
stringHTML from output bufferbbp_get_theme_compat_dir() : string
bbp_get_theme_compat_id() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3506) | 
stringbbp_get_theme_compat_name() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3506) | 
stringbbp_get_theme_compat_templates() : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3311) | 
| since | 2.6.0 bbPress (r5950) Added `singular.php` to template stack | 
stringPath to template filebbp_get_theme_compat_url() : string
bbp_get_theme_compat_version() : string
This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3506) | 
stringbbp_get_theme_package_id(string $default = 'default') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3829) | 
stringOptional. Default value 'default'
stringID of the theme-packagebbp_get_time_since(string $older_date, string $newer_date= false, integer $gmt= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2544) | 
stringUnix timestamp from which the difference begins.
stringOptional. Unix timestamp from which the difference ends. False for current time.
integerOptional. Whether to use GMT timezone. Default is false.
stringFormatted timebbp_get_tiny_mce_plugins(array $plugins = array()) : array
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4574) | 
| see | teeny_mce_plugins | 
array
arraybbp_get_title_max_length(boolean $default = 80) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3246) | 
booleanOptional. Default value 80
integerIs anonymous posting allowed?bbp_get_tools_admin_pages() : array
bbp_get_tools_admin_tabs(string $active_tab = '') 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3872) | 
stringName of the tab that is active
bbp_get_topic($topic, $output= OBJECT, $filter= 'raw') : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2787) | 
mixedNull if error or topic (in specified form) if successbbp_get_topic_admin_links(array $args = array()) : string
Move topic functionality is handled by the edit topic page.
| package | bbPress | 
|---|
arrayThis function supports these arguments:
stringTopic admin linksbbp_get_topic_approve_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5504) | 
arrayThis function supports these args:
stringTopic approve linkbbp_get_topic_archive_slug(string $default = 'topics') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'topics'
stringbbp_get_topic_archive_template() : string
bbp_get_topic_archive_title(string $title = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3249) | 
stringDefault text to use as title
stringThe topic archive titlebbp_get_topic_caps() : array
bbp_get_topic_class(integer $topic_id= 0, array $classes= array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Topic id
arrayExtra classes you can pass when calling this function
stringRow class of a topicbbp_get_topic_close_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arrayThis function supports these args:
stringTopic close linkbbp_get_topic_content(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2780) | 
integerOptional. Topic id
stringContent of the topicbbp_get_topic_edit_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arrayThis function supports these args:
stringTopic edit linkbbp_get_topic_edit_template() : string
bbp_get_topic_edit_url(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
integerOptional. Topic id
stringTopic edit urlbbp_get_topic_engagements(integer $topic_id = 0) : array | boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. Topic id
arraybooleanResults if the topic has any engagements, otherwise falsebbp_get_topic_engagements_raw(integer $topic_id = 0) : array
bbp_get_topic_excerpt(integer $topic_id= 0, integer $length= 100) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2780) | 
integerOptional. topic id
integerOptional. Length of the excerpt. Defaults to 100 letters
stringtopic Excerptbbp_get_topic_favorite_link($args = array()) 
A custom wrapper for bbp_get_user_favorites_link()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_get_topic_favoriters(integer $topic_id = 0) : array | boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2658) | 
integerOptional. Topic id
arraybooleanResults if the topic has any favoriters, otherwise falsebbp_get_topic_forum_id(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2491) | 
integerOptional. Topic id
integerTopic forum idbbp_get_topic_forum_title(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
stringTopic forum titlebbp_get_topic_freshness_link(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Topic id
stringTopic freshness linkbbp_get_topic_id($topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
Optional. Used to check emptiness
integerThe topic idbbp_get_topic_last_active_id(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
integerOptional. Forum id
integerForum's last active idbbp_get_topic_last_active_time(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Topic id
stringTopic freshnessbbp_get_topic_last_reply_id(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Topic id
integerTopic last reply idbbp_get_topic_last_reply_permalink(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Topic id
stringPermanent link to the replybbp_get_topic_last_reply_title(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
| since | 2.6.0 bbPress https://bbpress.trac.wordpress.org/ticket/3039 | 
integerOptional. Topic id
stringTopic last reply titlebbp_get_topic_last_reply_url(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2683) | 
integerOptional. Topic id
stringTopic last reply urlbbp_get_topic_lock_description(integer $topic_id = 0) 
bbp_get_topic_merge_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
arrayThis function supports these args:
stringTopic merge linkbbp_get_topic_merge_template() : string
bbp_get_topic_pagination(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2966) | 
arrayThis function supports these arguments:
stringPagination linksbbp_get_topic_pagination_count() : string
bbp_get_topic_pagination_links() : string
bbp_get_topic_permalink(integer $topic_id= 0, string $redirect_to= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
stringOptional. Pass a redirect value for use with shortcodes and other fun things.
stringPermanent link to topicbbp_get_topic_post_count(integer $topic_id= 0, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
integerPost countbbp_get_topic_post_date(integer $topic_id= 0, boolean $humanize= false, boolean $gmt= false) : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4155) | 
integerOptional. Topic id.
booleanOptional. Humanize output using time_since
booleanOptional. Use GMT
stringbbp_get_topic_post_type() : string
bbp_get_topic_post_type_labels() : array
bbp_get_topic_post_type_rewrite() : array
bbp_get_topic_post_type_supports() : array
bbp_get_topic_raw_revision_log(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Topic id
stringRaw revision log of the topicbbp_get_topic_replies_link(integer $topic_id = 0) 
bbp_get_topic_reply_count(integer $topic_id= 0, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
integerReply countbbp_get_topic_reply_count_hidden(integer $topic_id= 0, boolean $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
integerTopic hidden reply countbbp_get_topic_reply_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4966) | 
arrayArguments
stringLink for a reply to a topicbbp_get_topic_revision_count(integer $topic_id= 0, $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Topic id
stringTopic revision countbbp_get_topic_revision_log(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Topic id
stringRevision log of the topicbbp_get_topic_revisions(integer $topic_id = 0) : array<mixed,\WP_Post> | array<mixed,integer>
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
integerOptional. Topic id
array<mixed,\WP_Post>array<mixed,integer>Topic revisionsbbp_get_topic_slug(string $default = 'topic') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'topic'
stringbbp_get_topic_spam_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arrayThis function supports these args:
stringTopic spam linkbbp_get_topic_split_link(array $args = array()) : string
Return the split link of the topic (but is bundled with each reply)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
arrayThis function supports these arguments:
stringTopic split linkbbp_get_topic_split_template() : string
bbp_get_topic_status(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Topic id
stringStatus of topicbbp_get_topic_statuses(integer $topic_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
integerOptional. Topic id.
arraybbp_get_topic_stick_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
arrayThis function supports these args:
stringTopic stick linkbbp_get_topic_subscribers(integer $topic_id = 0) : array | boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. Topic id
arraybooleanResults if the topic has any subscribers, otherwise falsebbp_get_topic_subscription_link($args = array()) 
A custom wrapper for bbp_get_user_subscribe_link()
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_get_topic_tag_caps() : array
bbp_get_topic_tag_description(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3109) | 
arraybefore|after|tag
stringTerm Namebbp_get_topic_tag_edit_link($tag = '') : string
bbp_get_topic_tag_edit_template() : string
bbp_get_topic_tag_id($tag = '') : string
bbp_get_topic_tag_link($tag = '') : string
bbp_get_topic_tag_list(integer $topic_id= 0, array $args= array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. Topic id
arrayThis function supports these arguments:
stringTag list of the topicbbp_get_topic_tag_name($tag = '') : string
bbp_get_topic_tag_names(integer $topic_id= 0, string $sep= ', ') : string
bbp_get_topic_tag_slug($tag = '') : string
bbp_get_topic_tag_tax_id() : string
bbp_get_topic_tag_tax_labels() : array
bbp_get_topic_tag_tax_rewrite() : array
bbp_get_topic_tag_tax_slug(string $default = 'topic-tag') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'topic-tag'
stringbbp_get_topic_tag_template() : string
bbp_get_topic_title(integer $topic_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
stringTitle of topicbbp_get_topic_toggles(integer $topic_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6133) | 
integerOptional. Topic id.
arraybbp_get_topic_trash_link(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arrayThis function supports these args:
stringTopic trash linkbbp_get_topic_types(integer $topic_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5059) | 
integerOptional. Topic id.
arraybbp_get_topic_voice_count(integer $topic_id= 0, $integer= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2567) | 
integerOptional. Topic id
integerVoice count of the topicbbp_get_topics_pagination_base(integer $forum_id = 0) : string
bbp_get_topics_per_page($default = 15) : integer
bbp_get_topics_per_rss_page(integer $default = 25) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3540) | 
integerDefault replies per page (25)
integerbbp_get_topics_url(string $path = '/') : \The
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3979) | 
stringAdditional path with leading slash
\TheURL to the topics archivebbp_get_total_users() : integer
bbp_get_trash_days(string $context = 'forum') : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6424) | 
stringProvide context for additional filtering
integerNumber of days items remain in trashbbp_get_trash_status_id() : string
bbp_get_unique_array_values(array $array = array()) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6481) | 
arrayArray to get values of
arraybbp_get_url_scheme() : string
bbp_get_user_blog_role(integer $user_id = 0) : string
bbp_get_user_display_role(integer $user_id = 0) : string
bbp_get_user_engaged_topic_ids(integer $user_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. User id
arrayReturn array of topic ids, or empty arraybbp_get_user_engagements(array $args = array()) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_replies()
booleanTrue if user has engaged, otherwise falsebbp_get_user_engagements_rewrite_id() : string
bbp_get_user_engagements_slug(string $default = 'engagements') : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
stringOptional. Default value 'engagements'
stringbbp_get_user_engagements_url(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. User id
stringPermanent link to user profile pagebbp_get_user_favorites(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_topics()
arrayArray of topics if user has favorites, otherwise empty arraybbp_get_user_favorites_link(array $args= array(), integer $user_id= 0, boolean $wrap= true) : string
Return the link to make a topic favorite/remove a topic from favorites
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
arrayThis function supports these arguments:
integerOptional. User id
booleanOptional. If you want to wrap the link in . See ajax_favorite()
stringUser favorites linkbbp_get_user_favorites_rewrite_id() : string
bbp_get_user_favorites_slug(string $default = 'favorites') : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4187) | 
stringOptional. Default value 'favorites'
stringbbp_get_user_favorites_topic_ids(integer $user_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
integerOptional. User id
arrayReturn array of favorite topic ids, or empty arraybbp_get_user_forum_subscriptions(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_forums()
arrayArray of forums if user has forum subscriptions, otherwise empty arraybbp_get_user_id(integer $user_id= 0, boolean $displayed_user_fallback= true, boolean $current_user_fallback= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2729) | 
integerOptional. User id
booleanFallback on displayed user?
booleanFallback on current user?
integerValidated user idbbp_get_user_ids_from_nicenames(mixed $user_nicenames = array()) : array
This function is primarily used when saving object moderators
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress | 
mixed
arraybbp_get_user_languages_dropdown(array $args = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6488) | 
arraySee wp_dropdown_languages()
stringbbp_get_user_last_posted(integer $user_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3910) | 
integerUser ID to retrieve value for
mixedFalse if no user, time() format if existsbbp_get_user_nicename(integer $user_id= 0, array $args= array()) : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4671) | 
integerUser ID whose nicename to get
arraybefore|after|user_id|force
stringUser nicename, maybe wrapped in before/after stringsbbp_get_user_nicenames_from_ids(mixed $user_ids = array()) : array
This function is primarily used when saving object moderators
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress | 
mixed
arraybbp_get_user_object_ids(array $args = array()) : array | boolean
For the most part, you should not need to use this function, and may even want to come up with a more efficient way to get IDs on your own. Nevertheless, it is available here for your convenience, using the most efficient query parameters available inside of the various query APIs.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6606) | 
arrayThe arguments to override defaults
arraybooleanResults if user has objects, otherwise nullbbp_get_user_object_query(array $args= array(), string $context= '', string $rel_key= '', string $rel_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6747) | 
arrayDefault query arguments
stringAdditional context
stringThe relationship key
stringThe relationship type (usually 'post')
arraybbp_get_user_post_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_get_user_profile_edit_link(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringUser profile edit linkbbp_get_user_profile_edit_url(integer $user_id= 0, string $user_nicename= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringOptional. User nicename
stringbbp_get_user_profile_link(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringUser profile linkbbp_get_user_profile_url(integer $user_id= 0, string $user_nicename= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringOptional. User nicename
stringUser profile urlbbp_get_user_replies_created(array $args = array()) : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_replies()
booleanTrue if user has created replies, otherwise falsebbp_get_user_replies_created_url(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
integerOptional. User id
stringPermanent link to user profile pagebbp_get_user_replies_rewrite_id() : string
bbp_get_user_reply_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_get_user_reply_count_raw(integer $user_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3633) | 
integerUser ID to get count for
integerRaw DB count of repliesbbp_get_user_rewrite_id() : string
bbp_get_user_role(integer $user_id = 0) : string
bbp_get_user_role_map() : array
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4334) | 
arrayFiltered array of WordPress roles to bbPress rolesbbp_get_user_slug(string $default = 'users') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'users'
stringbbp_get_user_subscribe_link(array $args= array(), integer $user_id= 0, boolean $wrap= true) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
arrayThis function supports these arguments:
integerOptional. User id
booleanOptional. If you want to wrap the link in .
stringPermanent link to topicbbp_get_user_subscribed_forum_ids(integer $user_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
integerOptional. User id
arrayReturn array of subscribed forum ids, or empty arraybbp_get_user_subscribed_topic_ids(integer $user_id = 0) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
integerOptional. User id
arrayReturn array of subscribed topic ids, or empty arraybbp_get_user_subscriptions(integer $user_id = 0) : array | boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| deprecated | 2.5.0 bbPress (r5156) | 
integerOptional. User id
arraybooleanResults if user has subscriptions, otherwise falsebbp_get_user_subscriptions_rewrite_id() : string
bbp_get_user_subscriptions_slug(string $default = 'subscriptions') : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4187) | 
stringOptional. Default value 'subscriptions'
stringbbp_get_user_topic_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_get_user_topic_count_raw(integer $user_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3633) | 
integerUser ID to get count for
integerRaw DB count of topicsbbp_get_user_topic_subscriptions(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_topics()
arrayArray of topics if user has topic subscriptions, otherwise empty arraybbp_get_user_topics_created_url(integer $user_id = 0) : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
integerOptional. User id
stringPermanent link to user profile pagebbp_get_user_topics_rewrite_id() : string
bbp_get_user_topics_started(array $args = array()) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2660) | 
| since | 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments | 
arrayOptional. Arguments to pass into bbp_has_topics()
booleanTrue if user has started topics, otherwise falsebbp_get_users_for_object(integer $object_id= 0, string $rel_key= '', string $rel_type= 'post') : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe object id
stringThe key used to index this relationship
stringThe type of meta to look in
arrayReturns ids of usersbbp_get_version()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3468) | 
| retrun | string The bbPress version | 
bbp_get_view_all(string $cap = 'moderate') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3325) | 
stringCapability used to ensure user can view all
booleanWhether current user can and is viewing allbbp_get_view_id(string $view = '') : boolean | string
Use view id if supplied, otherwise bbp_get_view_rewrite_id() query var.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringOptional. View id.
booleanstringID on success, false on failurebbp_get_view_query_args(string $view = '') : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringView name
arrayQuery argumentsbbp_get_view_rewrite_id() : string
bbp_get_view_slug(string $default = 'view') : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
stringOptional. Default value 'view'
stringbbp_get_view_title(string $view = '') : boolean | string
If a view id is supplied, that is used. Otherwise the bbp_view query var is checked for.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringOptional. View id
booleanstringTitle on success, false on failurebbp_get_view_url(string $view = false) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringOptional. View id used view id
stringView url (or home url if the view was not found)bbp_get_views() : array
Does nothing much other than return the \$bbp->views variable
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
arrayViewsbbp_get_wp_login_action(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5684) | 
arrayThis function supports these arguments:
bbp_get_wp_query() : \WP_Roles
bbp_get_wp_roles() : \WP_Roles
bbp_group_forums_root_id(integer $default = 0) 
bbp_group_is_admin() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4632) | 
booleanIf current user is an admin of the current groupbbp_group_is_banned() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4632) | 
booleanIf current user is banned from the current groupbbp_group_is_creator() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4632) | 
booleanIf current user the creator of the current groupbbp_group_is_member() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4632) | 
booleanIf current user is a member of the current groupbbp_group_is_mod() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4632) | 
booleanIf current user is a moderator of the current groupbbp_has_errors()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3381) | 
| see | 
bbp_has_forums(array $args = array()) : object
WordPress makes this easy for us.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
arrayAll the arguments supported by {@link WP_Query}
objectMultidimensional array of forum informationbbp_has_replies(array $args = array()) : object
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2553) | 
arrayAll the arguments supported by {@link WP_Query}
objectMultidimensional array of reply informationbbp_has_search_results(array $args = array()) : object
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
arrayAll the arguments supported by {@link WP_Query}
objectMultidimensional array of search informationbbp_has_shortcode(string $text = '') : boolean
Loops through registered bbPress shortcodes and keeps track of which ones were used in a blob of text. If no text is passed, the current global post content is assumed.
A preliminary strpos() is performed before looping through each shortcode, to prevent unnecessarily processing.
| package | bbPress | 
|---|---|
| since | 2.6.0 | 
string
booleanbbp_has_topics(array $args = array()) : object
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
arrayAll the arguments supported by {@link WP_Query}
objectMultidimensional array of topic informationbbp_has_users(array $args = array()) : object
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6330) | 
arrayAll the arguments supported by {@link WP_User_Query}
objectMultidimensional array of user informationbbp_hide_forum(integer $forum_id= 0, $current_visibility= '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2996) | 
integerOptional. Forum id
booleanFalse on failure, true on successbbp_include_root_slug(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3759) | 
booleanOptional. Default value true
booleanbbp_increase_forum_reply_count(integer $forum_id = 0) : void
bbp_increase_forum_reply_count_hidden(integer $forum_id = 0) : void
bbp_increase_forum_topic_count(integer $forum_id = 0) : void
bbp_increase_forum_topic_count_hidden(integer $forum_id = 0) : void
bbp_increase_topic_reply_count(integer $topic_id = 0) : void
bbp_increase_topic_reply_count_hidden(integer $topic_id = 0) : void
bbp_increase_user_reply_count($reply_id = 0) 
This is a helper function, hooked to bbp_new_reply
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5309) | 
bbp_increase_user_topic_count($topic_id = 0) 
bbp_init()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2599) | 
bbp_insert_forum(array $forum_data= array(), array $forum_meta= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3349) | 
arrayForum post data
arrayForum meta data
bbp_insert_reply(array $reply_data= array(), array $reply_meta= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3349) | 
arrayForum post data
arrayForum meta data
bbp_insert_reply_update_counts(integer $reply_id= 0, integer $topic_id= 0, integer $forum_id= 0) : void
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6036) | 
integerThe reply id.
integerThe topic id.
integerThe forum id.
bbp_insert_topic(array $topic_data= array(), array $topic_meta= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3349) | 
arrayForum post data
arrayForum meta data
bbp_insert_topic_update_counts(integer $topic_id= 0, integer $forum_id= 0) : void
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6036) | 
integerThe topic id.
integerThe forum id.
bbp_is_activation($basename = '') : boolean
Note that this function currently is not used in bbPress core and is here for third party plugins to use to check for bbPress activation.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3421) | 
| global | string $pagenow The filename of the current screen. | 
booleanTrue if activating bbPress, false if notbbp_is_ajax() : boolean
bbp_is_anonymous() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
booleanTrue if anonymous is allowed and user is not logged in, false if
              anonymous is not allowed or user is logged inbbp_is_custom_post_type(mixed $the_post = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3311) | 
mixedOptional. Post object or post ID.
booleanbbp_is_deactivation($basename = '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3421) | 
| global | string $pagenow The filename of the current screen. | 
booleanTrue if deactivating bbPress, false if notbbp_is_edit() : boolean
bbp_is_engagements_active(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
booleanOptional.Default value true
booleanIs engagements enabled or notbbp_is_favorites() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
booleanTrue if it's the favorites page, false if notbbp_is_favorites_active(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2658) | 
booleanOptional.Default value true
booleanIs favorites enabled or notbbp_is_forum(integer $post_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2549) | 
integerPossible post_id to check
booleanTrue if it's a forum page, false if notbbp_is_forum_archive() : boolean
bbp_is_forum_category(integer $forum_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanWhether the forum is a category or notbbp_is_forum_closed(integer $forum_id= 0, boolean $check_ancestors= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanCheck if the ancestors are closed (only if they're a category)
booleanTrue if closed, false if notbbp_is_forum_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3553) | 
| global | string $pagenow The filename of the current screen. | 
booleanTrue if it's the forum edit page, false if notbbp_is_forum_form_post_request() : boolean
Used to avoid cross-site request forgeries when checking posted forum form content.
| package | bbPress | 
|---|---|
| see | |
| since | 2.6.0 bbPress (r5558) | 
booleanTrue if is a post request with valid noncebbp_is_forum_group_forum(integer $forum_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4571) | 
integer
booleanTrue if it is a group forum, false if notbbp_is_forum_hidden(integer $forum_id= 0, boolean $check_ancestors= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2997) | 
integerOptional. Forum id
booleanCheck if the ancestors are private (only if they're a category)
booleanTrue if hidden, false if notbbp_is_forum_open(integer $forum_id= 0, boolean $check_ancestors= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanCheck if the ancestors are open (only if they're a category)
booleanWhether the forum is open or notbbp_is_forum_private(integer $forum_id= 0, boolean $check_ancestors= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanCheck if the ancestors are private
booleanTrue if private, false if notbbp_is_forum_public(integer $forum_id= 0, boolean $check_ancestors= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2997) | 
integerOptional. Forum id
booleanCheck if the ancestors are public
booleanTrue if closed, false if notbbp_is_forum_status($forum_id, boolean $status_name, boolean $check_ancestors= true, string $operator= 'AND') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5499) | 
booleanThe forum status name to check
booleanCheck the forum ancestors
stringThe logical operation to perform. 'OR' means only one forum from the tree needs to match; 'AND' means all forums must match. The default is 'AND'.
booleanTrue if match, false if notbbp_is_forum_visibility(integer $forum_id, boolean $status_name, boolean $check_ancestors= true, string $operator= 'AND') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5499) | 
integerOptional. Forum id
booleanThe post status name to check
booleanCheck the forum ancestors
stringThe logical operation to perform. 'OR' means only one forum from the tree needs to match; 'AND' means all forums must match. The default is 'AND'.
booleanTrue if match, false if notbbp_is_get_request() : boolean
bbp_is_group_forums_active(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3575) | 
booleanOptional. Default value true
booleanIs group forums enabled or notbbp_is_install() : boolean
bbp_is_intercepted(boolean $value = '') 
bbp_is_large_install() : boolean
bbp_is_object_of_user(integer $object_id= 0, integer $user_id= 0, string $rel_key= '', string $rel_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe object id
integerThe user id
stringThe relationship key
stringThe relationship type (usually 'post')
booleanReturns true if object has a user, false if notbbp_is_post_request() : boolean
bbp_is_query_name($name = '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2980) | 
booleanTrue if match, false if notbbp_is_replies_created() : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
booleanTrue if it's the replies created page, false if notbbp_is_reply(integer $post_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2549) | 
integerPossible post_id to check
booleanTrue if it's a reply page, false if notbbp_is_reply_anonymous(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
integerOptional. Reply id
booleanTrue if the post is by an anonymous user, false if not.bbp_is_reply_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
| global | string $pagenow The filename of the current screen. | 
booleanTrue if it's the reply edit page, false if notbbp_is_reply_form_post_request() : boolean
Used to avoid cross-site request forgeries when checking posted reply form content.
| package | bbPress | 
|---|---|
| see | |
| since | 2.6.0 bbPress (r5558) | 
booleanTrue if is a post request with valid noncebbp_is_reply_move() : boolean
bbp_is_reply_pending(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5507) | 
integerOptional. Topic id
booleanTrue if pending, false if not.bbp_is_reply_private(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5507) | 
integerOptional. Topic id
booleanTrue if private, false if not.bbp_is_reply_public(integer $reply_id = 0) : boolean
See bbp_get_public_reply_statuses() for public statuses.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6391) | 
integerOptional. Reply id
booleanTrue if public, false if not.bbp_is_reply_published(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3496) | 
| since | 2.6.0 bbPress (r6922) Returns false if topic is also not published | 
integerOptional. Topic id
booleanTrue if published, false if not.bbp_is_reply_spam(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerOptional. Reply id
booleanTrue if spam, false if not.bbp_is_reply_trash(integer $reply_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2884) | 
integerOptional. Topic id
booleanTrue if spam, false if not.bbp_is_search() : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
| global | WP_Query $wp_query To check if WP_Query::bbp_is_search is true | 
booleanIs it a search page?bbp_is_search_results() : boolean
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4919) | 
| global | WP_Query $wp_query To check if WP_Query::bbp_is_search is true | 
booleanIs it a search page?bbp_is_single_forum() : boolean
bbp_is_single_reply() : boolean
bbp_is_single_topic() : boolean
bbp_is_single_user() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
booleanTrue if it's a user's profile page, false if notbbp_is_single_user_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
booleanTrue if it's a user's profile edit page, false if notbbp_is_single_user_engagements() : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
booleanTrue if it's a user's replies page, false if notbbp_is_single_user_profile() : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
booleanTrue if it's a user's profile page, false if notbbp_is_single_user_replies() : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
booleanTrue if it's a user's replies page, false if notbbp_is_single_user_topics() : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4225) | 
booleanTrue if it's a user's topics page, false if notbbp_is_single_view() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
| global | WP_Query $wp_query To check if WP_Query::bbp_is_view is true | 
booleanIs it a view page?bbp_is_site_public(integer $site_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3398) | 
integer
booleanTrue if site is public, false if privatebbp_is_subscriptions() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
booleanTrue if it's the subscriptions page, false if notbbp_is_subscriptions_active(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2658) | 
booleanOptional.Default value true
booleanIs subscription enabled or notbbp_is_template_included() : boolean
bbp_is_theme_compat_active() : boolean
bbp_is_theme_compat_original_template($template = '') 
Stash the original template file for the current query. Useful for checking if bbPress was able to find a more appropriate template.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3926) | 
bbp_is_title_too_long(string $title = '') : boolean
Uses mb_strlen() in 8bit mode to treat strings as raw. This matches the
behavior present in Comments, PHPMailer, RandomCompat, and others.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6783) | 
string
booleanbbp_is_topic(integer $post_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2549) | 
integerPossible post_id to check
booleanTrue if it's a topic page, false if notbbp_is_topic_anonymous(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
integerOptional. Topic id
booleanTrue if the post is by an anonymous user, false if not.bbp_is_topic_archive() : boolean
bbp_is_topic_closed(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Topic id
booleanTrue if closed, false if not.bbp_is_topic_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
| global | string $pagenow The filename of the current screen. | 
booleanTrue if it's the topic edit page, false if notbbp_is_topic_form_post_request() : boolean
Used to avoid cross-site request forgeries when checking posted topic form content.
| package | bbPress | 
|---|---|
| see | |
| since | 2.6.0 bbPress (r5558) | 
booleanTrue if is a post request with valid noncebbp_is_topic_merge() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
booleanTrue if it's the topic merge page, false if notbbp_is_topic_open(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
integerOptional. Topic id
booleanTrue if open, false if closed.bbp_is_topic_pending(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5504) | 
integerOptional. Topic id
booleanTrue if pending, false if not.bbp_is_topic_private(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5504) | 
integerOptional. Topic id
booleanTrue if private, false if not.bbp_is_topic_public(integer $topic_id = 0) : boolean
See bbp_get_public_topic_statuses() for public statuses.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6383) | 
integerOptional. Topic id
booleanTrue if public, false if not.bbp_is_topic_published(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3496) | 
integerOptional. Topic id
booleanTrue if published, false if not.bbp_is_topic_spam(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
integerOptional. Topic id
booleanTrue if spam, false if not.bbp_is_topic_split() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
booleanTrue if it's the topic split page, false if notbbp_is_topic_sticky(integer $topic_id= 0, integer $check_super= true) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
integerOptional. Topic id
integerOptional. If set to true and if the topic is not a normal sticky, it is checked if it is a super sticky or not. Defaults to true.
booleanTrue if sticky or super sticky, false if not.bbp_is_topic_super_sticky(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
integerOptional. Topic id
booleanTrue if super sticky, false if not.bbp_is_topic_tag() : boolean
bbp_is_topic_tag_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3346) | 
| global | string $pagenow The filename of the current screen. | 
| global | string $taxnow The taxonomy of the current screen. | 
booleanTrue if editing a topic tag, false if notbbp_is_topic_trash(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2888) | 
integerOptional. Topic id
booleanTrue if trashed, false if not.bbp_is_topics_created() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
booleanTrue if it's the topics created page, false if notbbp_is_update() : boolean
bbp_is_user_active(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3502) | 
integerThe user ID to check
booleanTrue if public, false if notbbp_is_user_deleted(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3355) | 
integerint The ID for the user.
booleanTrue if deleted, False if not.bbp_is_user_engaged(integer $user_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic is in user's engagements, otherwise falsebbp_is_user_favorite(integer $user_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic is in user's favorites, otherwise falsebbp_is_user_forum_moderator(integer $user_id= 0, integer $forum_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5834) | 
integerUser id.
integerForum id.
booleanReturn true if user is moderator of forumbbp_is_user_home() : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
booleanTrue if it's the user's home, false if notbbp_is_user_home_edit() : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3918) | 
booleanTrue if it's the user's home, false if notbbp_is_user_inactive(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3502) | 
integerThe user ID to check. Defaults to current user ID
booleanTrue if inactive, false if activebbp_is_user_keymaster(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4783) | 
integer
booleanTrue if keymaster, false if notbbp_is_user_spammer(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3355) | 
integerint The ID for the user.
booleanTrue if spammer, False if not.bbp_is_user_subscribed(integer $user_id= 0, integer $object_id= 0, $type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
integerOptional. User id
integerOptional. Object id
booleanTrue if the object (forum or topic) is in user's subscriptions, otherwise falsebbp_is_user_subscribed_to_forum(integer $user_id= 0, integer $forum_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. User id
integerOptional. Forum id
booleanTrue if the forum is in user's subscriptions, otherwise falsebbp_is_user_subscribed_to_topic(integer $user_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) Use bbp_is_user_subscribed() | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic is in user's subscriptions, otherwise falsebbp_is_valid_role(string $role = '') : boolean
This helper function accepts a role ID as a string, and compares it against the array of registered dynamic roles.
Use this function anytime you are manually attempting to set a user role without using the bbp_set_user_role() function, or if you need to halt additional processing during role validation.
| package | bbPress | 
|---|---|
| since | 2.6.5 | 
stringA well-formed (string) role ID to validate
booleanTrue if role is valid. False if role is not valid.bbp_kses_data(string $data = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4603) | 
stringContent to filter, expected to not be escaped
stringFiltered contentbbp_list_forums(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2708) | 
arrayThe function supports these args:
bbp_list_replies($args = array()) 
bbp_load_textdomain()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2599) | 
bbp_load_theme_functions()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3732) | 
| global | string $pagenow The filename of the current screen. | 
bbp_loaded()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2599) | 
bbp_locate_enqueueable(string $file = '') : boolean
If SCRIPT_DEBUG is set and the file includes a .min suffix, this function will automatically attempt to locate a non-minified version of that file.
If SCRIPT_DEBUG is not set and the file exclude a .min suffix, this function will automatically attempt to locate a minified version of that file.
| package | bbPress | 
|---|---|
| since | 2.6.0 | 
string
booleanbbp_locate_template(string|array $template_names, boolean $load= false, boolean $require_once= true) : string
Searches in the child theme before parent theme 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 | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3618) | 
stringarrayTemplate file(s) to search for, in order.
booleanIf true the template file will be loaded if it is found.
booleanWhether to require_once or require. Default true. Has no effect if $load is false.
stringThe template filename if one is located.bbp_logged_in_redirect(string $url = '') 
This should be used before \get_header() is called in template files where the user should never have access to the contents of that file.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
stringThe URL to redirect to
bbp_login_form_login()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
bbp_login_notices()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2970) | 
bbp_logout_link(string $redirect_to = '') 
bbp_logout_url(string $url= '', string $redirect_to= '') : string
This function is used to filter logout_url. If no $redirect_to value is
passed, it will default to the request uri, then the forum root.
See: wp_logout_url()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (2815) | 
stringURL used to log out
stringWhere to redirect to?
stringThe urlbbp_mail(array $args = array()) : array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6918) | 
arrayA compacted array of wp_mail() arguments, including the "to" email, subject, message, headers, and attachments values.
arrayArray of capabilitiesbbp_make_clickable(string $text = '') : string
Converts URI, www and ftp, and email addresses. Finishes by fixing links within links.
This custom version of WordPress's make_clickable() skips links inside of pre and code tags.
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4941) | 
stringContent to convert URIs.
stringContent with converted URIs.bbp_make_emails_clickable(string $text = '') : string
bbp_make_first_page_canonical(string $pagination_links = '') : string
This is a bit of an SEO hack, to guarantee that the first page in a loop will never have pagination appended to the end of it, regardless of what the other functions have decided for us.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6678) | 
stringThe HTML links used for pagination
stringbbp_make_ftps_clickable(string $text = '') : string
bbp_make_ham_user(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3405) | 
integerOptional. User ID to unspam. Defaults to displayed user.
booleanIf no user ID passed.bbp_make_mentions_clickable(string $text = '') : string
bbp_make_mentions_clickable_callback(array $matches = array()) : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6014) | 
arrayRegular expression matches in the current text blob.
stringOriginal text if no user exists, or link to user profile.bbp_make_spam_user(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3405) | 
integerOptional. User ID to spam. Defaults to displayed user.
booleanIf no user ID passed.bbp_make_urls_clickable(string $text = '') : string
bbp_maybe_admin_setting_disabled(string $option_key = '') 
bbp_maybe_append_pending_upgrade_count(string $string= '', string $type= '') : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6896) | 
stringText to append count to
stringType of pending upgrades (upgrade|repair|empty)
stringbbp_maybe_create_group_forum_root() :
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6479) | 
bbp_maybe_delete_group_forum_root(integer $forum_id = 0) 
bbp_maybe_get_root_slug() : string
bbp_maybe_intercept(string $action= '', array $args= array()) : mixed
| package | bbPress | 
|---|---|
| since | 2.6.0 | 
stringTypically the name of the caller function
arrayTypically the results of caller function func_get_args()
mixedIntercept results. Default bbp_default_intercept().bbp_member_forums_engagements_content()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
bbp_member_forums_favorites_content()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_replies_content()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_screen_engagements()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
bbp_member_forums_screen_favorites()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_screen_replies()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_screen_subscriptions()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_screen_topics()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_subscriptions_content()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_member_forums_topics_content()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3552) | 
bbp_mention_filter($content = '') : string
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4323) | 
| deprecated | 2.6.0 bbp_make_clickable() | 
string$content Content filtered for mentionsbbp_merge_topic_count(integer $destination_topic_id, integer $source_topic_id, integer $source_topic_forum_id)
When a topic is merged, update the counts of source and destination topic and their forums.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
integerDestination topic id
integerSource topic id
integerSource topic's forum id
bbp_merge_topic_form_fields()
Output the required hidden fields when merging a topic
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
bbp_merge_topic_handler(string $action = '') 
Handles the front end merge topic submission
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
stringThe requested action to compare this function to
bbp_moderator_list(integer $forum_id= 0, array $args= array())
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress | 
integerOptional. Topic id
arraySee {@link bbp_get_moderator_list()}
bbp_move_reply_count(integer $move_reply_id, integer $source_topic_id, integer $destination_topic_id)
When a reply is moved, update the counts of source and destination topic and their forums.
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4521) | 
integerMove reply id
integerSource topic id
integerDestination topic id
bbp_move_reply_form_fields()
Output the required hidden fields when moving a reply
| package | bbPress | 
|---|
bbp_move_reply_handler(string $action = '') 
Handles the front end move reply submission
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4521) | 
stringThe requested action to compare this function to
bbp_move_topic_handler(integer $topic_id, integer $old_forum_id, integer $new_forum_id)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2907) | 
integerThe topic id.
integerOld forum id.
integerNew forum id.
bbp_new_converter(string $platform = '') : mixed
It is basically a dynamic loader that will load in the platform conversion of your choice.
| package | bbPress | 
|---|---|
| since | 2.0.0 | 
stringName of valid platform class.
mixedObject if converter exists, null if notbbp_new_forum_handler(string $action = '') 
bbp_new_reply_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2574) | 
stringThe requested action to compare this function to id, anonymous data, reply author, edit (false), and the reply to id
bbp_new_site(integer $blog_id, integer $user_id, string $domain, string $path, integer $site_id, \array() $meta)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3283) | 
integer
integer
string
string
integer
\array()
bbp_new_topic_handler(string $action = '') 
bbp_no_title_status_hints(string $prepend= '', integer|\WP_Post $post= 0) : string
This function is hooked to 2 WordPress filters that are responsible for prepending hints to the beginning of Protected & Private post titles.
These hints are a bit unsightly when used in functions like bbp_get_breadcrumb(), so we strip them back out for bbPress post types.
| package | bbPress | 
|---|---|
| since | 2.7.0 | 
stringText displayed before a post title.
integer\WP_PostCurrent post object.
stringbbp_normalize_forum(integer $forum_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanFalse on failure, true on successbbp_notice_edit_user_is_super_admin()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
bbp_notice_edit_user_pending_email()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5660) | 
bbp_notice_edit_user_success()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
bbp_notify_forum_subscribers(integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $topic_author= 0) : boolean
Gets new post ID and check if there are subscribed users to that forum, and if there are, send notifications
Note: in bbPress 2.6, we've moved away from 1 email per subscriber to 1 email with everyone BCC'd. This may have negative repercussions for email services that limit the number of addresses in a BCC field (often to around 500.) In those cases, we recommend unhooking this function and creating your own custom email script.
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
integerID of the newly made reply
integerID of the forum for the topic
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerID of the topic author ID
booleanTrue on success, false on failurebbp_notify_subscribers(integer $reply_id= 0, integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $reply_author= 0) : boolean
This function is deprecated. Please use: bbp_notify_topic_subscribers()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| deprecated | 2.6.0 bbPress (r5412) | 
integerID of the newly made reply
integerID of the topic of the reply
integerID of the forum of the reply
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerID of the topic author ID
booleanTrue on success, false on failurebbp_notify_topic_subscribers(integer $reply_id= 0, integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $reply_author= 0) : boolean
Gets new post ID and check if there are subscribed users to that topic, and if there are, send notifications
Note: in bbPress 2.6, we've moved away from 1 email per subscriber to 1 email with everyone BCC'd. This may have negative repercussions for email services that limit the number of addresses in a BCC field (often to around 500.) In those cases, we recommend unhooking this function and creating your own custom email script.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5413) | 
integerID of the newly made reply
integerID of the topic of the reply
integerID of the forum of the reply
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerID of the topic author ID
booleanTrue on success, false on failurebbp_number_format(string $number= 0, string $decimals= false, $dec_point= '.', $thousands_sep= ',') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2486) | 
stringNumber to format
stringOptional. Display decimals
stringFormatted stringbbp_number_format_i18n(string $number= 0, string $decimals= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3857) | 
stringNumber to format
stringOptional. Display decimals
stringFormatted stringbbp_number_not_negative(integer $number = 0) 
bbp_open_forum(integer $forum_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerforum id
mixedFalse or {@link WP_Error} on failure, forum id on successbbp_open_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_paginate_links(array $args = array()) : string
bbp_parse_args(string|array $args, array $defaults= array(), string $filter_key= '') : array
This function is used throughout bbPress 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.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3839) | 
stringarrayValue to merge with $defaults
arrayArray that serves as the defaults.
stringString to key the filters from
arrayMerged user defined values with defaults.bbp_parse_query(\WP_Query $posts_query)
If it's a user page, WP_Query::bbp_is_single_user is set to true.
If it's a user edit page, WP_Query::bbp_is_single_user_edit is set to true and the the 'wp-admin/includes/user.php' file is included.
In addition, on user/user edit pages, WP_Query::home is set to false & query vars 'bbp_user_id' with the displayed user id is added.
In 2.6.0, the 'author_name' variable is no longer set when viewing a single user, because of is_author() weirdness. If this removal causes problems, it may come back in a future release.
If it's a forum edit, WP_Query::bbp_is_forum_edit is set to true If it's a topic edit, WP_Query::bbp_is_topic_edit is set to true If it's a reply edit, WP_Query::bbp_is_reply_edit is set to true.
If it's a view page, WP_Query::bbp_is_view is set to true If it's a search page, WP_Query::bbp_is_search is set to true
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
\WP_Query
bbp_past_edit_lock(string $datetime= '', boolean $utc= true) : boolean
It is recommended to leave $utc set to true and to work with UTC/GMT dates. Turning this off will use the WordPress offset which is likely undesirable.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3133) | 
| since | 2.6.0 bbPress (r6868) Inverted some logic and added unit tests | 
stringGets run through strtotime()
booleanDefault true. Is the timestamp in UTC?
booleanTrue by default, if date is past, or editing is disabled.bbp_plugin_locale(string $locale= '', string $domain= '')
bbp_post_request()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4550) | 
bbp_posts_pre_query(mixed $posts= null, \WP_Query $wp_query= false) : mixed
This effectively short-circuits the default query for posts, which is currently only used to avoid calling the main query when it's not necessary.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6580) | 
mixedDefault null. Array of posts (possibly empty)
\WP_Query
mixedNull if no override. Array if overridden.bbp_pre_get_posts_normalize_forum_visibility(\WP_Query $posts_query = null) : \WP_Query
Doing it with an action allows us to trap all WP_Query's rather than needing to hardcode this logic into each query. It also protects forum content for plugins that might be doing their own queries.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3291) | 
\WP_Query
\WP_Querybbp_pre_handle_404(boolean $override= false, \WP_Query $wp_query= false) : boolean
Some conditions (like private/hidden forums and edits) have their own checks
on bbp_template_redirect and are not currently 404s.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6555) | 
booleanWhether to override the default handler
\WP_QueryThe posts query being referenced
booleanFalse to leave alone, true to overridebbp_privatize_forum(integer $forum_id= 0, $current_visibility= '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanFalse on failure, true on successbbp_profile_update(integer $user_id= 0, array $old_user_data= array())
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4304) | 
integerID of user being edited
arrayThe old, unmodified user data
bbp_profile_update_role(integer $user_id = 0) 
bbp_publicize_forum(integer $forum_id= 0, $current_visibility= '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2746) | 
integerOptional. Forum id
booleanFalse on failure, true on successbbp_query_post_parent__in(string $where, \WP_Query $object = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2996) | 
| deprecated | 2.5.8 bbPress (r5814) | 
| global | WP $wp | 
string
\WP_Query
stringbbp_ready()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2618) | 
bbp_recalculate_topic_engagements(integer $topic_id= 0, boolean $force= false) : boolean
This happens when permanently deleting a reply, because that reply author may have authored other replies to that same topic, or the topic itself.
You may need to do this manually on heavily active forums where engagement count accuracy is important.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6522) | 
integer
boolean
booleanTrue if any engagements are added, false otherwisebbp_redirect(string $location= '', integer $status= 302)
On some setups, passing the value of wp_get_referer() may result in an empty value for $location, which results in an error on redirection. If $location is empty, we can safely redirect back to the forum root. This might change in a future version, possibly to the site root.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5658) | 
| see | 
stringThe URL to redirect the user to.
integerOptional. The numeric code to give in the redirect headers. Default: 302.
bbp_redirect_canonical(string $redirect_url= '', string $requested_url= '') : string
| package | bbPress | 
|---|---|
| see | |
| since | 2.0.0 bbPress (r2628) | 
| since | 2.7.0 bbPress {r7345) Converted to a sub-action. | 
stringThe redirect URL.
stringThe requested URL.
stringEmpty string if a topic/forum and their first page,
                otherwise the redirect URL.bbp_redirect_login(string $url= '', string $raw_url= '', object $user= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
stringThe url
stringRaw url
objectUser object
bbp_redirect_to_field(string $redirect_to = '') 
The referer link is the current Request URI from the server super global. To check the field manually, use bbp_get_redirect_to().
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
stringPass a URL to redirect to
bbp_register()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4180) | 
bbp_register_admin_scripts()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6912) | 
bbp_register_admin_settings()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3766) | 
bbp_register_admin_styles()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6912) | 
bbp_register_default_repair_tools()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5885) | 
bbp_register_importers()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3766) | 
bbp_register_repair_tool(array $args = array()) : 
bbp_register_shortcodes()
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4211) | 
bbp_register_taxonomies()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
bbp_register_template_stack(string $location_callback= '', integer $priority= 10)
This allows for templates to live in places beyond just the parent/child relationship, to allow for custom template locations. Used in conjunction with bbp_locate_template(), this allows for easy template overrides.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4323) | 
stringCallback function that returns the
integer
bbp_register_theme_package(array $theme= array(), $override= true)
bbp_register_theme_packages()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3829) | 
bbp_register_view(string $view, string $title, mixed $query_args= '', boolean $feed= true, string $capability= '') : array
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringView name
stringView title
mixed{@link bbp_has_topics()} arguments.
booleanHave a feed for the view? Defaults to true.
stringCapability that the current user must have
arrayThe just registered (but processed) viewbbp_rel_nofollow(string $text = '') : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4865) | 
stringPost text
string$text Text with rel=nofollow added to any linksbbp_rel_nofollow_callback(array $matches = array()) : string
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4865) | 
array
string$text Link with rel=nofollow addedbbp_remove_adjacent_posts()
WordPress automatically generates these relational links to the current page, but bbPress does not use these links, nor would they work the same.
In this function, we remove these links when on a bbPress page. This also prevents additional, unnecessary queries from running.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r7071) | 
bbp_remove_all_filters(string $tag, integer $priority = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3251) | 
| global | WP_filter $wp_filter | 
| global | array $merged_filters | 
string
integer
booleanbbp_remove_all_users_from_all_objects(string $rel_key= '', string $rel_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
stringThe relationship key
stringThe relationship type (usually 'post')
booleanReturns true on success, false on failurebbp_remove_caps()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2608) | 
bbp_remove_forum_from_all_subscriptions(integer $forum_id = 0) 
bbp_remove_forum_id_from_all_groups(integer $forum_id = 0) 
bbp_remove_forum_id_from_group(integer $group_id= 0, $forum_id= 0)
bbp_remove_group_id_from_all_forums(integer $group_id = 0) 
bbp_remove_group_id_from_forum($forum_id= 0, integer $group_id= 0)
bbp_remove_moderator(integer $object_id= 0, integer $user_id= 0, string $object_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6056) | 
integerTraditionally a post ID
integerUser ID
stringType of meta (post,term,user,comment)
booleanbbp_remove_object_from_all_users(integer $object_id= 0, string $rel_key= '', string $rel_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe object id
stringThe relationship key
stringThe relationship type (usually 'post')
booleanReturns true on success, false on failurebbp_remove_pending_upgrade(string $upgrade_id = '') 
bbp_remove_roles()
This is currently only used when updating, uninstalling, or resetting bbPress.
| package | bbPress | 
|---|---|
| see | |
| see | |
| see | |
| since | 2.0.0 bbPress (r2741) | 
bbp_remove_topic_from_all_favorites(integer $topic_id = 0) 
bbp_remove_topic_from_all_subscriptions(integer $topic_id = 0) 
bbp_remove_user_engagement(integer $user_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6320) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic was removed from user's engagements, otherwise
              falsebbp_remove_user_favorite(integer $user_id, integer $topic_id) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic was removed from user's favorites, otherwise falsebbp_remove_user_forum_subscription(integer $user_id= 0, integer $forum_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. User id
integerOptional. forum id
booleanTrue if the forum was removed from user's subscriptions,
              otherwise falsebbp_remove_user_from_all_objects(integer $user_id= 0, string $rel_key= '', string $rel_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe user id
stringThe relationship key
stringThe relationship type (usually 'post')
booleanReturns true on success, false on failurebbp_remove_user_from_object(integer $object_id= 0, integer $user_id= 0, string $rel_key= '', string $rel_type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6109) | 
integerThe object id
integerThe user id
stringThe relationship key
stringThe relationship type (usually 'post')
booleanReturns true on success, false on failurebbp_remove_user_subscription(integer $user_id= 0, integer $object_id= 0, string $type= 'post') : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6544) Added $type parameter | 
integerOptional. User id
integerOptional. Object id
stringOptional. Type of object being subscribed to
booleanTrue if the object was removed from user subscriptions, otherwise falsebbp_remove_user_topic_subscription(integer $user_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| deprecated | 2.6.0 bbPress (r6543) | 
integerOptional. User id
integerOptional. Topic id
booleanTrue if the topic was removed from user's subscriptions,
              otherwise falsebbp_remove_view_all(string $original_link = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3325) | 
stringOriginal Link to be modified
stringThe link with 'view=all' appended if necessarybbp_repair_forum_visibility() : array
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r5017) | 
arrayAn array of the status code and the messagebbp_replies() : object
bbp_reply_admin_links(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
arraySee {@link bbp_get_reply_admin_links()}
bbp_reply_ancestor_id(integer $reply_id = 0) 
bbp_reply_approve_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5507) | 
arraySee {@link bbp_get_reply_approve_link()}
bbp_reply_class(integer $reply_id= 0, array $classes= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2678) | 
integerOptional. Reply ID
arrayExtra classes you can pass when calling this function
bbp_reply_content(integer $reply_id = 0) 
bbp_reply_content_append_revisions(string $content= '', integer $reply_id= 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
stringOptional. Content to which we need to append the revisions to
integerOptional. Reply id
stringContent with the revisions appendedbbp_reply_edit_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arraySee {@link bbp_get_reply_edit_link()}
bbp_reply_edit_url(integer $reply_id = 0) 
bbp_reply_excerpt(integer $reply_id= 0, integer $length= 100)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2751) | 
integerOptional. Reply id
integerOptional. Length of the excerpt. Defaults to 100 letters
bbp_reply_form_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
bbp_reply_forum_id(integer $reply_id = 0) 
bbp_reply_id($reply_id = 0) 
bbp_reply_move_link(array $args = array()) 
Output the move link of the reply
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4521) | 
arraySee {@link bbp_get_reply_move_link()}
bbp_reply_permalink(integer $reply_id = 0) 
bbp_reply_position(integer $reply_id= 0, integer $topic_id= 0)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2984) | 
integerOptional. Reply id
integerOptional. Topic id
bbp_reply_post_date(integer $reply_id= 0, boolean $humanize= false, boolean $gmt= false)
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4155) | 
integerOptional. Reply id.
booleanOptional. Humanize output using time_since
booleanOptional. Use GMT
bbp_reply_post_type()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2857) | 
bbp_reply_revision_log(integer $reply_id = 0) 
bbp_reply_spam_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arraySee {@link bbp_get_reply_spam_link()}
bbp_reply_status(integer $reply_id = 0) 
bbp_reply_title(integer $reply_id = 0) 
bbp_reply_to(integer $reply_id = 0) 
bbp_reply_to_dropdown(integer $reply_id = 0) 
bbp_reply_to_link(array $args = array()) 
bbp_reply_topic_id(integer $reply_id = 0) 
bbp_reply_topic_title(integer $reply_id = 0) 
bbp_reply_trash_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
arraySee {@link bbp_get_reply_trash_link()}
bbp_reply_url(integer $reply_id = 0) 
bbp_request(array $query_vars = array()) : array
bbp_request_feed_trap(array $query_vars = array()) : array
bbp_reset_query_name()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2692) | 
bbp_restore_all_filters(string $tag, integer $priority = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3251) | 
| global | WP_filter $wp_filter | 
| global | array $merged_filters | 
string
integer
booleanbbp_restore_current_site()
If not a multisite installation, no switching will occur.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6733) | 
bbp_rewrite() : object
This function is abstracted to avoid global touches to the primary rewrite
rules class. bbPress supports WordPress's $wp_rewrite by default, but can
be filtered to support other configurations if needed.
| package | bbPress | 
|---|---|
| since | 2.5.8 bbPress (r5814) | 
objectbbp_roles_init(\WP_Roles $wp_roles)
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6106) | 
\WP_RolesThe array of WP_Role objects that was initialized
bbp_sanitize_displayed_user_field(string $value= '', string $field= '', string $context= 'display') : string
This somewhat monolithic function handles the escaping and sanitization of user data for a bbPress profile. There are two reasons this all happens here:
bbPress took a similar approach to WordPress, and funnels all user profile data through a central helper. This eventually calls sanitize_user_field() which applies a few context based filters, which some third party plugins might be relying on bbPress to play nicely with.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5368) | 
string
string
string
stringbbp_sanitize_search_request(string $query_arg = 's') : mixed
Accepts a single parameter to be used for forums, topics, or replies.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6903) | 
strings|fs|ts|rs
mixedbbp_sanitize_slug(string $slug = '') : string
bbp_sanitize_val(string $request= '', string $input_type= 'text')
Use the $input_type parameter to properly process the value. This ensures correct sanitization of the value for the receiving input.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
stringName of $_REQUEST to look for
stringType of input. Default: text. Accepts: textarea|password|select|radio|checkbox
bbp_save_forum_extras(integer $forum_id = 0) : \If
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3678) | 
integer
\Ifforum ID is emptybbp_search_pagination_count()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
bbp_search_pagination_links()
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
bbp_search_query(mixed $new_args = array()) : boolean
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4579) | 
mixedNew arguments
booleanFalse if no results, otherwise if search results are therebbp_search_results() : object
bbp_search_results_redirect() : \If
bbp_search_terms(string $search_terms = '') 
bbp_set_404(\WP_Query $query = null) : boolean
Used primarily with topics/replies inside hidden forums.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3051) | 
| since | 2.6.0 bbPress (r6583) Use status_header() & nocache_headers() | 
\WP_QueryThe query being checked
booleanAlways returns truebbp_set_current_anonymous_user_data(array $anonymous_data = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2734) | 
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
bbp_set_current_user_default_role() : \If
This function will bail if the forum is not global in a multisite installation of WordPress, or if the user is marked as spam or deleted.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3380) | 
\Ifnot multisite, not global, or user is deleted/spammedbbp_set_post_lock(integer $post_id = 0) : boolean | array
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6340) | 
integerID of the post to being edited
booleanarrayReturns false if the post doesn't exist of there is no current user, or
	an array of the lock time and the user ID.bbp_set_query_name(string $name = '') 
bbp_set_template_included(mixed $template = false) : mixed
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4975) | 
mixedDefault false
mixedFalse if empty. Template name if template includedbbp_set_theme_compat_active(boolean $set = true) : boolean
bbp_set_theme_compat_original_template($template = '') 
Stash the original template file for the current query. Useful for checking if bbPress was able to find a more appropriate template.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3926) | 
bbp_set_theme_compat_template($template = '') 
Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3311) | 
bbp_set_theme_compat_templates($templates = 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 | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3311) | 
bbp_set_user_role(integer $user_id= 0, $new_role= '') : mixed
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3860) | 
integer
mixedFalse if no change. String of new role if changed.bbp_settings_integration(boolean $default = 'basic') : string
There are 3 possible modes:
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4932) | 
booleanOptional. Default value false
stringHow to integrate settingsbbp_setup_admin()
This exists outside of "/includes/admin/" because the converter may need to be setup to convert the passwords of users that were migrated from another forum platform.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r2596) | 
bbp_setup_buddypress() : \If
@see bbp_setup_buddypress_component()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3395) | 
\IfBuddyPress is not activebbp_setup_converter()
This exists outside of "/includes/admin/" because the converter may need to be setup to convert the passwords of users that were migrated from another forum platform.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r2596) | 
bbp_setup_current_user()
| package | bbPress | 
|---|---|
| link | https://bbpress.trac.wordpress.org/ticket/2309 | 
| link | https://core.trac.wordpress.org/ticket/24169 | 
| since | 2.0.0 bbPress (r2695) | 
bbp_setup_engagements()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6875) | 
bbp_setup_new_site($site_id = 0) 
bbp_setup_option_filters()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3451) | 
bbp_setup_theme()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3732) | 
bbp_setup_theme_compat(\BBP_Theme_Compat $theme = 'default') 
bbp_setup_user_option_filters()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3910) | 
bbp_show_lead_topic($show_lead = false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
Optional. Default false
booleanYes if the topic appears as a lead, otherwise falsebbp_show_on_root(string $default = 'forums') : string
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4932) | 
stringOptional. Default value 'forums'
stringbbp_show_topic_lock_alert() : boolean
bbp_single_forum_description(array $args = array()) 
bbp_single_topic_description(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
arraySee {@link bbp_get_single_topic_description()}
bbp_spam_reply(integer $reply_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerReply id
mixedFalse or {@link WP_Error} on failure, reply id on successbbp_spam_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_spam_topic_replies(integer $topic_id = 0) 
Usually you'll want to do this before the topic itself is marked as spam.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5405) | 
integer
bbp_split_topic_count(integer $from_reply_id, integer $source_topic_id, integer $destination_topic_id)
When a topic is split, update the counts of source and destination topic and their forums.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
integerFrom reply id
integerSource topic id
integerDestination topic id
bbp_split_topic_form_fields()
Output the required hidden fields when splitting a topic
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
bbp_split_topic_handler(string $action = '') 
Handles the front end split topic submission
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
stringThe requested action to compare this function to
bbp_stick_topic(integer $topic_id= 0, integer $super= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
integerOptional. Topic id
integerShould we make the topic a super sticky?
booleanTrue on success, false on failurebbp_subscriptions_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2790) | 
| since | 2.6.l bbPress (r6543) | 
stringThe requested action to compare this function to
bbp_subscriptions_permalink(integer $user_id = 0) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
| since | 2.6.0 bbPress (r6308) Add pagination if in the loop | 
integerOptional. User id
bbp_swap_no_js_body_class()
| package | bbPress | 
|---|---|
| since | 2.6.10 bbPress (r7229) | 
bbp_switch_to_site(integer $site_id = 0) 
If not a multisite installation, no switching will occur.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6733) | 
integer
bbp_tab_index(integer $auto_increment = true) 
Use this function to handle the tab indexing of user facing forms within a template file. Calling this function will automatically increment the global tab index by default.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2810) | 
| deprecated | 2.6.0 bbPress (r5561) | 
| link | Trac Ticket | 
integerOptional. Default true. Set to false to prevent increment
bbp_tab_index_attribute(mixed $tab = false) 
This helper function is in use, but it is generally considered impolite to override the "tabindex" attribute beyond what the browser naturally assigns.
Most internal usages pass false which results in no attribute being used.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6424) | 
mixedFalse to skip, any integer to use
bbp_template_include(string $template = '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3311) | 
string
stringTemplate file to usebbp_template_include_theme_compat(string $template = '') 
bbp_template_include_theme_supports(string $template = '') : string
Listens to the 'template_include' filter and waits for any bbPress 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 | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3032) | 
string
stringThe path to the template file that is being usedbbp_template_notices()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
bbp_template_redirect()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3605) | 
bbp_the_content(array $args = array()) 
bbp_the_forum() : object
bbp_the_reply() : object
bbp_the_search_result() : object
bbp_the_topic() : object
bbp_the_user() : object
bbp_theme_compat_reset_post(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3108) | 
| global | WP_Query $wp_query | 
| global | object $post | 
array
bbp_thread_replies() : boolean
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
| since | 2.6.0 bbPress (r6245) Always false on user profile reply pages | 
booleanAre replies threaded?bbp_thread_replies_depth(integer $default = 2) : integer
| package | bbPress | 
|---|---|
| since | 2.4.0 bbPress (r4944) | 
integerThread replies depth
integerThread replies depthbbp_time_since(string $older_date, string $newer_date= false, integer $gmt= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2544) | 
stringUnix timestamp from which the difference begins.
stringOptional. Unix timestamp from which the difference ends. False for current time.
integerOptional. Whether to use GMT timezone. Default is false.
bbp_title(string $title= '', string $sep= '»', string $seplocation= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2788) | 
stringOptional. The title (not used).
stringOptional, default is '»'. How to separate the various items within the page title.
stringOptional. Direction to display title, 'right'. separator and separator location
stringThe titlebbp_title_max_length(boolean $default = 80) 
bbp_toggle_reply(array $args = array()) 
This function is used by bbp_toggle_reply_handler() to do the actual heavy
lifting when it comes to toggling replies. It only really makes sense to call
within that context, so if you need to call this function directly, make sure
you're also doing what the handler does too.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6133) | 
| access | private | 
array
bbp_toggle_reply_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
stringThe requested action to compare this function to
bbp_toggle_topic(array $args = array()) 
This function is used by bbp_toggle_topic_handler() to do the actual heavy
lifting when it comes to toggling topic. It only really makes sense to call
within that context, so if you need to call this function directly, make sure
you're also doing what the handler does too.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6133) | 
| access | private | 
array
bbp_toggle_topic_handler(string $action = '') 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
stringThe requested action to compare this function to
bbp_tools_admin_tabs(string $active_tab = '') 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3872) | 
stringName of the tab that is active
bbp_topic_admin_links(array $args = array()) 
bbp_topic_approve_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5504) | 
arraySee {@link bbp_get_topic_approve_link()}
bbp_topic_archive_title(string $title = '') 
bbp_topic_class(integer $topic_id= 0, array $classes= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2667) | 
integerOptional. Topic id
arrayExtra classes you can pass when calling this function
bbp_topic_close_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arraySee {@link bbp_get_topic_close_link()}
bbp_topic_content(integer $topic_id = 0) 
bbp_topic_content_append_revisions(string $content= '', integer $topic_id= 0) : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
stringOptional. Content to which we need to append the revisions to
integerOptional. Topic id
stringContent with the revisions appendedbbp_topic_edit_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arraySee {@link bbp_get_topic_edit_link()}
bbp_topic_edit_url(integer $topic_id = 0) 
bbp_topic_excerpt(integer $topic_id= 0, integer $length= 100)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2780) | 
integerOptional. Topic id
integerOptional. Length of the excerpt. Defaults to 100 letters
bbp_topic_favorite_link($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_topic_form_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2753) | 
bbp_topic_forum_id(integer $topic_id = 0) 
bbp_topic_forum_title(integer $topic_id = 0) 
bbp_topic_freshness_link(integer $topic_id = 0) 
bbp_topic_id($topic_id = 0) 
bbp_topic_last_active_id(integer $topic_id = 0) 
bbp_topic_last_active_time(integer $topic_id = 0) 
bbp_topic_last_reply_id(integer $topic_id = 0) 
bbp_topic_last_reply_permalink(integer $topic_id = 0) 
bbp_topic_last_reply_title(integer $topic_id = 0) 
bbp_topic_last_reply_url(integer $topic_id = 0) 
bbp_topic_lock_description(integer $topic_id = 0) 
bbp_topic_merge_link(array $args = array()) 
bbp_topic_pagination(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2966) | 
arraySee {@link bbp_get_topic_pagination()}
bbp_topic_pagination_count()
The results are unescaped by design, to allow them to be filtered freely via the 'bbp_get_topic_pagination_count' filter.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2519) | 
bbp_topic_pagination_links()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2519) | 
bbp_topic_permalink(integer $topic_id= 0, string $redirect_to= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
stringOptional. Pass a redirect value for use with shortcodes and other fun things.
bbp_topic_post_count(integer $topic_id= 0, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
bbp_topic_post_date(integer $topic_id= 0, boolean $humanize= false, boolean $gmt= false)
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4155) | 
integerOptional. Topic id.
booleanOptional. Humanize output using time_since
booleanOptional. Use GMT
bbp_topic_post_type()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2857) | 
bbp_topic_replies_link(integer $topic_id = 0) 
bbp_topic_reply_count(integer $topic_id= 0, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2485) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
bbp_topic_reply_count_hidden(integer $topic_id= 0, boolean $integer= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerOptional. Topic id
booleanOptional. Whether or not to format the result
bbp_topic_reply_link(array $args = array()) 
bbp_topic_revision_log(integer $topic_id = 0) 
bbp_topic_row_actions()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3653) | 
| todo | Links and filter | 
bbp_topic_spam_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arraySee {@link bbp_get_topic_spam_link()}
bbp_topic_split_link(array $args = array()) 
Output the split link of the topic (but is bundled with each reply)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2756) | 
arraySee {@link bbp_get_topic_split_link()}
bbp_topic_status(integer $topic_id = 0) 
bbp_topic_stick_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
arraySee {@link bbp_get_topic_stick_link()}
bbp_topic_subscription_link($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.5.0 bbPress (r5156) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
bbp_topic_tag_description($args = array()) 
bbp_topic_tag_edit_link($tag = '') 
bbp_topic_tag_id($tag = '') 
bbp_topic_tag_link($tag = '') 
bbp_topic_tag_list(integer $topic_id= 0, array $args= array())
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. Topic id
arraySee {@link bbp_get_topic_tag_list()}
bbp_topic_tag_name($tag = '') 
bbp_topic_tag_slug($tag = '') 
bbp_topic_tag_tax_id()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3348) | 
bbp_topic_title(integer $topic_id = 0) 
bbp_topic_trash_link(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2727) | 
arraySee {@link bbp_get_topic_trash_link()}
bbp_topic_type_select($args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2784) | 
| deprecated | 2.4.0 bbPress (r5059) | 
This function supports these arguments:
bbp_topic_voice_count(integer $topic_id= 0, $integer= false)
bbp_topics() : object
bbp_topics_url(string $path = '/') 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3979) | 
stringAdditional path with leading slash
bbp_transition_post_status(string $new_status= '', string $old_status= '', \WP_Post $post= false)
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6792) | 
stringNew post status
stringOld post status
\WP_PostPost object
bbp_translate_user_role(string $name) : string
Since the role names are in the database and not in the source there are dummy gettext calls to get them into the POT file and this function properly translates them back.
The before_last_bar() call is needed, because older installs keep the roles using the old context format: 'Role name|User role' and just skipping the content after the last bar is easier than fixing them in the DB. New installs won't suffer from that problem.
| package | bbPress | 
|---|---|
| see | |
| since | 2.6.0 bbPress | 
stringThe role name.
stringTranslated role name on success, original name on failure.bbp_trash_forum($forum_id = 0) 
This function is supplemental to the actual forum being trashed which is handled by WordPress core API functions. It is used to clean up after a forum that is being trashed.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
bbp_trash_forum_topics(integer $forum_id = 0) : \If
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
integer
\Ifforum is not validbbp_trash_topic($topic_id = 0) 
This function is supplemental to the actual topic being trashed which is handled by WordPress core API functions. It is used to clean up after a topic that is being trashed.
| package | bbPress | 
|---|
bbp_trash_topic_replies(integer $topic_id = 0) 
Usually you'll want to do this before the topic itself is marked as spam.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5405) | 
integer
bbp_trashed_forum($forum_id = 0) 
bbp_trashed_reply($reply_id = 0) 
bbp_trashed_topic($topic_id = 0) 
bbp_unapprove_reply(integer $reply_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5506) | 
integerReply id
mixedFalse or {@link WP_Error} on failure, reply id on successbbp_unapprove_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5503) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_unspam_reply(integer $reply_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerReply id
mixedFalse or {@link WP_Error} on failure, reply id on successbbp_unspam_topic(integer $topic_id = 0) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerTopic id
mixedFalse or {@link WP_Error} on failure, topic id on successbbp_unspam_topic_replies(integer $topic_id = 0) 
Usually you'll want to do this after the topic is unspammed.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5405) | 
integer
bbp_unstick_topic(integer $topic_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2754) | 
integerOptional. Topic id
booleanAlways true.bbp_untrash_forum($forum_id = 0) 
bbp_untrash_forum_topics(integer $forum_id = 0) : \If
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3668) | 
integer
\Ifforum is not validbbp_untrash_reply($reply_id = 0) 
bbp_untrash_topic($topic_id = 0) 
bbp_untrash_topic_replies(integer $topic_id = 0) 
Usually you'll want to do this after the topic is unspammed.
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5405) | 
integer
bbp_untrashed_forum($forum_id = 0) 
bbp_untrashed_reply($reply_id = 0) 
bbp_untrashed_topic($topic_id = 0) 
bbp_update_forum(array $args = array()) 
This calls a few internal functions that all run manual queries against the database to get their results. As such, this function can be costly to run but is necessary to keep everything accurate.
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2908) | 
arraySupports these arguments:
bbp_update_forum_group_ids(integer $forum_id= 0, $group_ids= array())
bbp_update_forum_id(integer $post_id= 0, integer $forum_id= 0)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3181) | 
integerThe post to update
integerThe forum
bbp_update_forum_last_active_id(integer $forum_id= 0, integer $active_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2860) | 
integerOptional. Forum id.
integerOptional. Active post id.
integerId of the forums last active postbbp_update_forum_last_active_time(integer $forum_id= 0, string $new_time= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2680) | 
integerOptional. Topic id.
stringOptional. New time in mysql format.
stringMySQL timestamp of last active topic or replybbp_update_forum_last_reply_id(integer $forum_id= 0, integer $reply_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id.
integerOptional. Reply id.
integerId of the forums most recent replybbp_update_forum_last_topic_id(integer $forum_id= 0, integer $topic_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id.
integerOptional. Topic id.
integerId of the forums most recent topicbbp_update_forum_reply_count(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerOptional. Forum id or topic id. It is checked whether it is a topic or a forum. If it's a topic, its parent, i.e. the forum is automatically retrieved.
integerForum reply countbbp_update_forum_reply_count_hidden(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6922) | 
integerOptional. Forum id or topic id. It is checked whether it is a topic or a forum. If it's a topic, its parent, i.e. the forum is automatically retrieved.
integerForum reply countbbp_update_forum_subforum_count(integer $forum_id= 0, integer $subforums= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Forum id
integerOptional. Number of subforums
booleanTrue on success, false on failurebbp_update_forum_topic_count(integer $forum_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
integerOptional. Forum id or topic id. It is checked whether it is a topic or a forum. If it's a topic, its parent, i.e. the forum is automatically retrieved.
integerForum topic countbbp_update_forum_topic_count_hidden(integer $forum_id= 0, integer $topic_count= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2888) | 
| since | 2.6.0 bbPress (r5954) Replace direct queries with WP_Query() objects | 
integerOptional. Topic id to update.
integerOptional. Set the topic count manually.
integerTopic hidden topic countbbp_update_group_forum_ids(integer $group_id= 0, $forum_ids= array())
bbp_update_post_family_caches(array $objects = array()) : boolean
This function uses _prime_post_caches() to prepare the object cache for imminent requests to post objects that aren't naturally cached by the primary WP_Query calls themselves. Post author caches are also primed.
This is triggered when a update_post_family_cache argument is set to true.
Also see: bbp_update_post_author_caches()
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6699) | 
arrayArray of objects, fresh from a query
booleanTrue if some IDs were cachedbbp_update_reply(integer $reply_id= 0, integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $author_id= 0, boolean $is_edit= false, integer $reply_to= 0)
| package | bbPress | 
|---|
integerOptional. Reply id
integerOptional. Topic id
integerOptional. Forum id
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerAuthor id
booleanOptional. Is the post being edited? Defaults to false.
integerOptional. Reply to id
bbp_update_reply_forum_id(integer $reply_id= 0, integer $forum_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2855) | 
integerOptional. Reply id to update
integerOptional. Forum id
booleanThe forum id of the replybbp_update_reply_id(integer $post_id= 0, integer $reply_id= 0)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3181) | 
integerThe post to update
integerThe reply
bbp_update_reply_position(integer $reply_id= 0, integer $reply_position= false) : mixed
The reply position is stored in the menu_order column of the posts table. This is done to prevent using a meta_query to retrieve posts in the proper freshness order. By updating the menu_order accordingly, we're able to leverage core WordPress query ordering much more effectively.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3933) | 
integer
integer
mixedbbp_update_reply_revision_log(array $args = array()) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
arraySupports these args:
mixedFalse on failure, true on successbbp_update_reply_to($reply_id= 0, $reply_to= 0)
bbp_update_reply_to_id(integer $post_id= 0, integer $reply_id= 0)
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5735) | 
integerThe post to update
integerThe reply ID
bbp_update_reply_topic_id(integer $reply_id= 0, integer $topic_id= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2855) | 
integerOptional. Reply id to update
integerOptional. Topic id
booleanThe topic id of the replybbp_update_reply_walker(integer $reply_id, string $last_active_time= '', integer $forum_id= 0, integer $topic_id= 0, boolean $refresh= true)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2884) | 
integerOptional. Reply id
stringOptional. Last active time
integerOptional. Forum id
integerOptional. Topic id
booleanIf set to true, unsets all the previous parameters. Defaults to true
bbp_update_topic(integer $topic_id= 0, integer $forum_id= 0, array $anonymous_data= array(), integer $author_id= 0, boolean $is_edit= false)
| package | bbPress | 
|---|
integerOptional. Topic id
integerOptional. Forum id
arrayOptional - if it's an anonymous post. Do not supply if supplying $author_id. Should be sanitized (see {@link bbp_filter_anonymous_post_data()}
integerAuthor id
booleanOptional. Is the post being edited? Defaults to false.
bbp_update_topic_anonymous_reply_count(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2567) | 
integerOptional. Topic id to update
integerAnonymous reply countbbp_update_topic_engagements(integer $topic_id = 0) 
Hooked to 'bbp_new_topic' and 'bbp_new_reply', this gets the post author and if not anonymous, passes it into bbp_add_user_engagement().
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6526) | 
integer
bbp_update_topic_forum_id(integer $topic_id= 0, integer $forum_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2855) | 
integerOptional. Topic id to update
integerOptional. Forum id
integerForum idbbp_update_topic_id(integer $post_id= 0, integer $topic_id= 0)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3181) | 
integerThe post to update
integerThe topic
bbp_update_topic_last_active_id(integer $topic_id= 0, integer $active_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2888) | 
integerOptional. Topic id to update
integerOptional. active id
integerActive idbbp_update_topic_last_active_time(integer $topic_id= 0, string $new_time= '') : string
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2680) | 
integerOptional. Topic id.
stringOptional. New time in mysql format.
stringMySQL timestamp of last active replybbp_update_topic_last_reply_id(integer $topic_id= 0, integer $reply_id= 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2625) | 
integerOptional. Topic id to update
integerOptional. Reply id
integerReply idbbp_update_topic_reply_count(integer $topic_id= 0, integer $reply_count= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2467) | 
integerOptional. Topic id to update
integerOptional. Set the reply count manually.
integerTopic reply countbbp_update_topic_reply_count_hidden(integer $topic_id= 0, integer $reply_count= false) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2740) | 
integerOptional. Topic id to update
integerOptional. Set the reply count manually
integerTopic hidden reply countbbp_update_topic_revision_log(array $args = array()) : mixed
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2782) | 
arraySupports these args:
mixedFalse on failure, true on successbbp_update_topic_tag_count(array $terms, object $taxonomy)
Function for the default callback for topic-tag taxonomies.
| package | bbPress | 
|---|---|
| see | |
| access | private | 
| since | 2.6.0 bbPress (r6253) | 
arrayList of Term taxonomy IDs.
objectCurrent taxonomy object of terms.
bbp_update_topic_topic_id(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2954) | 
integerOptional. Topic id to update
integerTopic idbbp_update_topic_voice_count(integer $topic_id = 0) : integer
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2567) | 
| since | 2.6.0 bbPress (r6515) This must be called after any engagement changes | 
integerOptional. Topic id to update
integerVoice countbbp_update_topic_walker(integer $topic_id, string $last_active_time= '', integer $forum_id= 0, integer $reply_id= 0, boolean $refresh= true)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2800) | 
integerTopic id
stringOptional. Last active time
integerOptional. Forum id
integerOptional. Reply id
booleanReset all the previous parameters? Defaults to true.
bbp_update_user_last_posted(integer $user_id= 0, integer $time= 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3910) | 
integerUser ID to update
integerTime in time() format
booleanFalse if no user or failure, true if successfulbbp_update_user_reply_count(integer $user_id= 0, mixed $count= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5309) | 
integer
mixed
booleanbbp_update_user_topic_count(integer $user_id= 0, mixed $count= false) : boolean
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r5309) | 
integer
mixed
booleanbbp_urlize_enqueueable(string $file = '') : string
bbp_use_pretty_urls() : boolean
| package | bbPress | 
|---|---|
| since | 2.5.8 bbPress (r5814) | 
| global | object $wp_rewrite The WP_Rewrite object | 
booleanbbp_use_wp_editor(boolean $default = 1) : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r3386) | 
booleanOptional. Default value true
booleanUse WP editor?bbp_user_add_role_on_activate(integer $user_id= 0, string $password= '', array $meta= array()) : void
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6674) | 
integerUser ID
stringUser password
arrayArray of metadata
bbp_user_add_role_on_invite(integer $user_id= '', array $role= '', string $newuser_key= '') : void
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6674) | 
integerThe invited user's ID.
arrayThe role of invited user.
stringThe key of the invitation.
bbp_user_add_role_on_register(integer $user_id = '') : void
bbp_user_can_view_forum($args = array()) : boolean
bbp_user_display_role(integer $user_id = 0) 
bbp_user_edit_after()
This allows clever plugin authors to conditionally unhook the WordPress core output actions if they don't want any unexpected junk to appear there, and also avoids needing to pollute the templates with additional logic and actions.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4273) | 
bbp_user_email_change_handler(string $action = '') 
bbp_user_engagements_interface(string $rel_key= '', string $rel_type= 'post') : string
| package | bbPress | 
|---|---|
| since | 2.6.0 bbPress (r6722) | 
stringThe key used to index this relationship
stringThe type of meta to look in
stringbbp_user_engagements_url(integer $user_id = 0) 
bbp_user_favorites_link(array $args= array(), integer $user_id= 0, boolean $wrap= true)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2652) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
arraySee {@link bbp_get_user_favorites_link()}
integerOptional. User id
booleanOptional. If you want to wrap the link in .
bbp_user_has_profile(integer $user_id = 0) : boolean
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4362) | 
integerUser ID to check
booleanWhether or not the user has a profile on this blog_id.bbp_user_id(integer $user_id= 0, boolean $displayed_user_fallback= true, boolean $current_user_fallback= false)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2729) | 
integerOptional. User id
booleanFallback on displayed user?
booleanFallback on current user?
bbp_user_languages_dropdown(array $args = array()) 
bbp_user_last_posted(integer $user_id = 0) 
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3910) | 
integerUser ID to retrieve value for
bbp_user_login_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
bbp_user_lost_pass_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
bbp_user_maybe_convert_pass()
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3813) | 
| since | 2.6.10 bbPress (r7244) Switched from direct query to get_user_by() | 
bbp_user_nicename(integer $user_id= 0, array $args= array())
| package | bbPress | 
|---|---|
| since | 2.3.0 bbPress (r4671) | 
integerUser ID whose nicename to get
arraybefore|after|user_id|force
bbp_user_post_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_user_profile_edit_link(integer $user_id = 0) 
bbp_user_profile_edit_url(integer $user_id= 0, string $user_nicename= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringOptional. User nicename
bbp_user_profile_link(integer $user_id = 0) 
bbp_user_profile_url(integer $user_id= 0, string $user_nicename= '')
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2688) | 
integerOptional. User id
stringOptional. User nicename
bbp_user_register(integer $user_id = 0) 
bbp_user_register_fields()
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
bbp_user_replies_created_url(integer $user_id = 0) 
bbp_user_reply_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_user_subscribe_link(array $args= array(), integer $user_id= 0, boolean $wrap= true)
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2668) | 
| since | 2.6.0 bbPress (r6308) Add 'redirect_to' support | 
arraySee {@link bbp_get_user_subscribe_link()}
integerOptional. User id
booleanOptional. If you want to wrap the link in .
bbp_user_topic_count(integer $user_id= 0, boolean $integer= false) : string
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r3632) | 
integer
booleanOptional. Whether or not to format the result
stringbbp_user_topics_created_url(integer $user_id = 0) 
bbp_users() : object
bbp_validate_activation_role(string $to_validate = '') : string
This function exists simply for parity with registrations, and to maintain an intentional layer of abstraction from the more generic function it uses.
Note: this will not fire inside of wp-activate.php unless it is hooked in during sunrise.php, and is considered an advanced use-case.
| package | bbPress | 
|---|---|
| since | 2.6.5 | 
stringA role ID to validate
stringA valid role ID, or empty string on errorbbp_validate_registration_role(string $to_validate = '') : string
| package | bbPress | 
|---|---|
| since | 2.6.5 | 
stringA role ID to validate
stringA valid role ID, or empty string on errorbbp_validate_reply_to(integer $reply_to= 0, integer $reply_id= 0) : integer
Checks for 2 scenarios: -- The reply to ID is actually a reply -- The reply to ID does not match the current reply
| package | bbPress | 
|---|---|
| see | |
| see | |
| since | 2.5.4 bbPress (r5377) | 
integer
integer
integer$reply_tobbp_validate_signup_role(string $to_validate = '') : string
This helper function performs a number of generic checks, and encapsulates the logic used to validate if a Forum Role is valid, typically during new user registration, but also when adding an existing user to a site in Multisite installations.
| package | bbPress | 
|---|---|
| since | 2.6.5 | 
stringA role ID to validate
stringA valid role ID, or empty string on errorbbp_verify_nonce_request(string $action= '', string $query_arg= '_wpnonce')
To avoid security exploits within the theme.
| package | bbPress | 
|---|---|
| since | 2.1.0 bbPress (r4022) | 
stringAction nonce
stringwhere to look for nonce in $_REQUEST
bbp_version_updater()
This is most-often used when the data schema changes, but should also be used to correct issues with bbPress meta-data silently on software update.
| package | bbPress | 
|---|---|
| since | 2.2.0 bbPress (r4104) | 
bbp_view_id(string $view = '') 
bbp_view_query(string $view= '', mixed $new_args= '') : boolean
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2789) | 
stringOptional. View id
mixedNew arguments. See {@link bbp_has_topics()}
booleanFalse if the view doesn't exist, otherwise if topics are therebbp_view_title(string $view = '') 
bbp_view_url(string $view = false) 
bbp_wp_login_action(array $args = array()) 
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2815) | 
arrayThis function supports these arguments:
bbpress() : \bbPress
Use this function like you would a global variable, except without needing to declare the global.
Example: <?php $bbp = bbpress(); ?>
| package | bbPress | 
|---|---|
| since | 2.0.0 bbPress (r2464) | 
\bbPressThe one true bbPress Instancebuddypress() : \BuddyPress
is_bbpress() : boolean
Tests for the `bbp_update_forum_last_*()` functions.
« More »Tests for the `bbp_*_form_forum_author_*()` template functions.
« More »Tests for the `bbp_*_forum_*_count()` template functions.
« More »Tests for the `bbp_get_forum_last_*()` template functions.
« More »Tests for the `bbp_*_form_forum_post_type_*()` functions.
« More »Tests for the `bbp_*_form_forum_*` status template functions.
« More »Tests for the `bbp_*_form_forum_*` visibility template functions.
« More »Tests for the `bbp_*_form_reply_author_*()` template functions.
« More »Tests for the `bbp_*_form_reply_post_type_*()` functions.
« More »Tests for the search component search template functions.
« More »Tests for the topic component statuses and types functions.
« More »Tests for the `bbp_update_topic_last_*()` functions.
« More »Tests for the `bbp_*_form_topic_author_*()` template functions.
« More »Tests for the `bbp_get_topic__last_*()` template functions.
« More »Tests for the `bbp_*_form_topic_post_type_*()` functions.
« More »Tests for the user component subscription functions.
« More »Base strategy class for interfacing with User Engagements, which other classes will extend.
« More »A PHPUnit TestListener that exposes your slowest running tests by outputting results directly to the console.
« More »BBP_PLUGIN_DIR = dirname(dirname(dirname(dirname(__FILE__)))) . '/src/'
| package | bbPress | 
|---|
WP_ROOT_DIR = dirname(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))))
| package | bbPress | 
|---|
WP_TESTS_CONFIG_PATH = dirname(dirname(WP_TESTS_DIR)) . '/wp-tests-config.php'
| package | bbPress | 
|---|
Force comments_status to 'closed' for bbPress post types
Parameters
$open
booleanTrue if open, false if closed
$post_id
integerID of the post to check
Returns
booleanTrue if open, false if closed