Contents
bbp_get_topic_post_type()
Return the unique id of the custom post type for topics
Description
Return
(string) The unique topic post type id
Source
File: bp-forums/topics/template.php
function bbp_get_topic_post_type() { return apply_filters( 'bbp_get_topic_post_type', bbpress()->topic_post_type ); }
Changelog
Version | Description |
---|---|
bbPress (r2857) | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-forums/classes/class-bbpress.php: bbpress() |
The main function responsible for returning the one true bbPress Instance to functions everywhere. |
Used By | Description |
---|---|
bp-document/classes/class-bp-rest-document-endpoint.php: BP_REST_Document_Endpoint::bbp_document_update_rest_field_callback() |
The function to use to update the document’s value of the topic REST Field. |
bp-document/bp-document-filters.php: bp_document_forums_new_post_document_save() |
Save document when new topic or reply is saved |
bp-media/bp-media-functions.php: bp_media_get_forum_id() | |
bp-groups/bp-groups-filters.php: bp_groups_exclude_forums_topics_by_group_type_args() |
Exclude Forums topic from topic loop if any forum is attached to a group and that group have a group type and that group type is hidden from the directory page. |
bp-forums/core/functions.php: bbp_fix_forums_media() |
Fix forums media |
bp-forums/classes/class-bp-rest-topics-actions-endpoint.php: BP_REST_Topics_Actions_Endpoint::split_item() |
Split Topic |
bp-forums/classes/class-bp-rest-topics-actions-endpoint.php: BP_REST_Topics_Actions_Endpoint::dropdown_items() |
Topic’s Dropdown |
bp-forums/classes/class-bp-rest-topics-endpoint.php: BP_REST_Topics_Endpoint::get_items() |
Retrieve Topics. |
bp-forums/classes/class-bp-rest-topics-endpoint.php: BP_REST_Topics_Endpoint::create_item() |
Create a topic. |
bp-forums/classes/class-bp-rest-topics-endpoint.php: BP_REST_Topics_Endpoint::update_item() |
Update/Edit a topic. |
bp-forums/classes/class-bp-rest-reply-actions-endpoint.php: BP_REST_Reply_Actions_Endpoint::move_item() |
Move a Reply. |
bp-media/bp-media-functions.php: bp_media_import_buddyboss_topic_media() |
Import topic media from BuddyBoss Media Plugin |
bp-forums/admin/tools.php: bbp_admin_repair_user_topic_count() |
Recount topics by the users |
bp-forums/admin/tools.php: bbp_admin_repair_user_favorites() |
Clean the users’ favorites |
bp-forums/admin/tools.php: bbp_admin_repair_user_topic_subscriptions() |
Clean the users’ topic subscriptions |
bp-forums/admin/metaboxes.php: bbp_dashboard_widget_right_now() |
Forums Dashboard Right Now Widget |
bp-forums/admin/metaboxes.php: bbp_reply_metabox() |
Reply metabox |
bp-forums/admin/tools.php: bbp_admin_repair_topic_reply_count() |
Recount topic replies |
bp-forums/admin/tools.php: bbp_admin_repair_topic_voice_count() |
Recount topic members |
bp-forums/admin/topics.php: BBP_Topics_Admin::row_actions() |
Topic Row actions |
bp-forums/admin/topics.php: BBP_Topics_Admin::setup_globals() |
Admin globals |
bp-forums/admin/admin.php: BBP_Admin::enqueue_scripts() |
Enqueue any admin scripts we might need |
bp-forums/admin/admin.php: BBP_Admin::suggest_topic() |
Ajax action for facilitating the discussion auto-suggest |
bp-forums/admin/functions.php: bbp_admin_menu_order() |
Move our custom separator above our custom post types |
bp-forums/core/cache.php: bbp_clean_post_cache() |
Will clean a post in the cache. |
bp-forums/core/theme-compat.php: bbp_template_include_theme_compat() |
Reset main query vars and filter ‘the_content’ to output a Forums template part as needed. |
bp-forums/core/theme-compat.php: bbp_force_comment_status() |
Force comments_status to ‘closed’ for Forums post types |
bp-forums/core/template-functions.php: bbp_parse_query() |
Add checks for Forums conditions to parse_query action |
bp-forums/core/template-loader.php: bbp_get_topic_merge_template() |
Get the topic merge template |
bp-forums/core/template-loader.php: bbp_get_single_topic_template() |
Get the single topic template |
bp-forums/core/template-loader.php: bbp_get_topic_archive_template() |
Get the topic archive template |
bp-forums/core/template-loader.php: bbp_get_topic_edit_template() |
Get the topic edit template |
bp-forums/core/template-loader.php: bbp_get_topic_split_template() |
Get the topic split template |
bp-forums/topics/template.php: bbp_get_form_topic_tags() |
Return value of topic tags field |
bp-forums/topics/template.php: bbp_get_topic_edit_url() |
Return URL to the topic edit page |
bp-forums/topics/template.php: bbp_get_topic() |
Gets a topic |
bp-forums/topics/template.php: bbp_get_topic_archive_title() |
Return the topic archive title |
bp-forums/topics/template.php: bbp_topic_post_type() |
Output the unique id of the custom post type for topics |
bp-forums/topics/template.php: bbp_has_topics() |
The main topic loop. WordPress makes this easy for us |
bp-forums/topics/functions.php: bbp_update_topic_voice_count() |
Adjust the total voice count of a topic |
bp-forums/topics/functions.php: bbp_update_topic_anonymous_reply_count() |
Adjust the total anonymous reply count of a topic |
bp-forums/topics/functions.php: bbp_toggle_topic_handler() |
Handles the front end opening/closing, spamming/unspamming, sticking/unsticking and trashing/untrashing/deleting of topics |
bp-forums/topics/functions.php: bbp_split_topic_handler() |
Split topic handler |
bp-forums/topics/functions.php: bbp_insert_topic() |
A wrapper for wp_insert_post() that also includes the necessary meta values for the topic to function properly. |
bp-forums/topics/functions.php: bbp_new_topic_handler() |
Handles the front end topic submission |
bp-forums/topics/functions.php: bbp_edit_topic_handler() |
Handles the front end edit topic submission |
bp-forums/users/capabilities.php: bbp_make_spam_user() |
Mark a users topics and replies as spam when the user is marked as spam |
bp-forums/users/capabilities.php: bbp_make_ham_user() |
Mark a users topics and replies as spam when the user is marked as spam |
bp-forums/users/functions.php: bbp_subscriptions_handler() |
Handles the front end subscribing and unsubscribing topics |
bp-forums/users/functions.php: bbp_is_user_subscribed() |
Check if a topic or forum is in user’s subscription list or not |
bp-forums/users/functions.php: bbp_add_user_subscription() |
Add a topic to user’s subscriptions |
bp-forums/users/functions.php: bbp_remove_user_subscription() |
Remove a topic from user’s subscriptions |
bp-forums/users/functions.php: bbp_favorites_handler() |
Handles the front end adding and removing of favorite topics |
bp-forums/users/functions.php: bbp_get_user_topic_count_raw() |
Return the raw database count of topics by a user |
bp-forums/groups.php: BBP_Forums_Group_Extension::maybe_map_permalink_to_group() |
Maybe map a Forums forum/topic/reply permalink to the corresponding group |
bp-forums/forums/template.php: bbp_suppress_private_author_link() |
Replace forum author details for users that cannot view them. |
bp-forums/forums/functions.php: bbp_forum_enforce_private() |
Check if it’s a private forum or a topic or reply of a private forum and if the user can’t view it, then sets a 404 |
bp-forums/forums/functions.php: bbp_delete_forum_topics() |
Delete all topics (and their replies) for a specific forum ID |
bp-forums/forums/functions.php: bbp_trash_forum_topics() |
Trash all topics inside a forum |
bp-forums/forums/functions.php: bbp_pre_get_posts_normalize_forum_visibility() |
Adjusts forum, topic, and reply queries to exclude items that might be contained inside hidden or private forums that the user does not have the capability to view. |
bp-forums/forums/functions.php: bbp_forum_query_topic_ids() |
Returns the forum’s topic ids |
bp-forums/forums/functions.php: bbp_forum_enforce_hidden() |
Check if it’s a hidden forum or a topic or reply of a hidden forum and if the user can’t view it, then sets a 404 |
bp-forums/forums/functions.php: bbp_update_forum_topic_count_hidden() |
Adjust the total hidden topic count of a forum (hidden includes trashed and spammed topics) |
bp-forums/forums/functions.php: bbp_update_forum_last_topic_id() |
Update the forum last topic id |
bp-forums/classes/class-bbpress.php: bbPress::add_rewrite_rules() |
Add Forums-specific rewrite rules for uri’s that are not setup for us by way of custom post types or taxonomies. This includes: – Front-end editing – Topic views – User profiles |
bp-forums/classes/class-bbpress.php: bbPress::register_post_types() |
Setup the post types for forums, topics and replies |
bp-forums/classes/class-bbpress.php: bbPress::register_taxonomies() |
Register the topic tag taxonomy |
bp-forums/common/widgets.php: BBP_Topics_Widget::widget() |
Displays the output, the topic list |
bp-forums/common/shortcodes.php: BBP_Shortcodes::display_topic() |
Display the contents of a specific topic ID in an output buffer and return to ensure that post/page contents are displayed first. |
bp-forums/common/template.php: bbp_get_breadcrumb() |
Return a breadcrumb ( forum -> topic -> reply ) |
bp-forums/common/template.php: bbp_reply_attributes_meta_box_discussion_reply_title() |
Set the ID if title is blank. |
bp-forums/common/template.php: bbp_get_dropdown() |
Output a select box allowing to pick which forum/topic a new topic/reply belongs in. |
bp-forums/common/template.php: bbp_body_class() |
Use the above is_() functions to output a body class for each scenario |
bp-forums/common/template.php: bbp_is_topic() |
Check if current page is a Forums topic |
bp-forums/common/template.php: bbp_is_single_topic() |
Viewing a single topic |
bp-forums/common/template.php: bbp_is_topic_archive() |
Check if we are viewing a topic archive. |
bp-forums/common/template.php: bbp_is_topic_edit() |
Check if current page is a topic edit page |
bp-forums/common/template.php: bbp_is_custom_post_type() |
Check if the current post type is one of Forums’ |
bp-forums/common/functions.php: bbp_request_feed_trap() |
This function is hooked into the WordPress ‘request’ action and is responsible for sniffing out the query vars and serving up RSS2 feeds if the stars align and the user has requested a feed of any Forums type. |
bp-forums/common/functions.php: bbp_get_public_child_last_id() |
Query the DB and get the last public post_id that has parent_id as post_parent |
bp-forums/common/functions.php: bbp_get_public_child_count() |
Query the DB and get a count of public children |
bp-forums/common/functions.php: bbp_get_public_child_ids() |
Query the DB and get a the child id’s of public children |
bp-forums/common/functions.php: bbp_fix_post_author() |
Fix post author id on post save |
bp-forums/common/functions.php: bbp_get_statistics() |
Get the forum statistics |
bp-forums/common/functions.php: bbp_check_for_duplicate() |
Check for duplicate topics/replies |
bp-forums/activity.php: BBP_BuddyPress_Activity::topic_update() |
Update the activity stream entry when a topic status changes |
bp-forums/extend/akismet.php: BBP_Akismet::add_metaboxes() |
Add Aksimet History metaboxes to topics and replies |
bp-forums/admin.php: bp_discussions_admin_discussions_listing_add_tab() |
Add Navigation tab on top of the page BuddyBoss > Forums > Discussions Templates |
bp-forums/admin.php: bbp_set_platform_tab_submenu_active() |
Highlights the submenu item using WordPress native styles. |
bp-forums/admin.php: bp_core_get_forums_admin_tabs() |
Register tabs for the BuddyBoss > Forums screens. |
bp-forums/admin.php: bp_forums_highlight_topic_tag_parent_menu() |
Make parent menu highlight when on topic tag page |
bp-forums/admin.php: bp_forums_highlight_topic_tag_submenu() |
Make submenu highlight when on topic tag page |
bp-forums/admin.php: bp_forums_highlight_forums_new_parent_menu() |
Make paretn menu highlight when on editing/creating topic |
bp-forums/admin.php: bp_forums_highlight_forums_new_submenu() |
Make submenu highlight when on editing/creating topic |
bp-forums/admin.php: bp_forums_highlight_forums_view_parent_menu() |
Make paretn menu highlight when on editing/creating topic |
bp-forums/admin.php: bp_forums_highlight_forums_view_submenu() |
Make submenu highlight when on editing/creating topic |
bp-forums/functions.php: bbp_filter_modify_page_title() |
Add the topic title to the |
bp-forums/replies/template.php: bbp_has_replies() |
The main reply loop. WordPress makes this easy for us |
bp-forums/replies/functions.php: _bbp_has_replies_where() |
Used by bbp_has_replies() to add the lead topic post to the posts loop |
bp-forums/replies/functions.php: bbp_update_reply_topic_id() |
Update the reply with its topic id it is in |
bp-forums/replies/functions.php: bbp_move_reply_handler() |
Move reply handler |
bp-forums/search/template.php: bbp_has_search_results() |
The main search loop. WordPress does the heavy lifting. |
bp-templates/bp-nouveau/buddypress-functions.php: BP_Nouveau::bbp_set_forum_selected_menu_class() |
Set the Forums to selected in menu items |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.