Contents
bbp_get_forum_post_type()
Return the unique id of the custom post type for forums
Description
Return
(string) The unique forum post type id
Source
File: bp-forums/forums/template.php
function bbp_get_forum_post_type() { return apply_filters( 'bbp_get_forum_post_type', bbpress()->forum_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-forums/admin.php: bp_forums_add_sub_menu_page_admin_menu() | |
bp-forums/core/functions.php: bbp_fix_forums_media() |
Fix forums media |
bp-forums/classes/class-bp-rest-forums-endpoint.php: BP_REST_Forums_Endpoint::get_items() |
Retrieve Forums. |
bp-media/bp-media-functions.php: bp_media_import_buddyboss_forum_media() |
Import forums media from BuddyBoss Media Plugin |
bp-forums/admin/tools.php: bbp_admin_repair_user_forum_subscriptions() |
Clean the users’ forum subscriptions |
bp-forums/admin/tools.php: bbp_admin_repair_group_forum_relationship() |
Repair group forum ID mappings after a bbPress 1.1 to Forums 2.2 conversion |
bp-forums/admin/tools.php: bbp_admin_repair_forum_topic_count() |
Recount forum topics |
bp-forums/admin/tools.php: bbp_admin_repair_forum_reply_count() |
Recount forum replies |
bp-forums/admin/metaboxes.php: bbp_dashboard_widget_right_now() |
Forums Dashboard Right Now Widget |
bp-forums/admin/metaboxes.php: bbp_forum_metabox() |
Forum metabox |
bp-forums/admin/metaboxes.php: bbp_topic_metabox() |
Topic metabox |
bp-forums/admin/metaboxes.php: bbp_reply_metabox() |
Reply metabox |
bp-forums/admin/forums.php: BBP_Forums_Admin::setup_globals() |
Admin globals |
bp-forums/admin/forums.php: BBP_Forums_Admin::bbp_set_hidden_forum_states() |
Set the forum states if forum is hidden. |
bp-forums/admin/forums.php: BBP_Forums_Admin::admin_head() |
Add some general styling to the admin area |
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_single_forum_template() |
Get the single forum template |
bp-forums/core/template-loader.php: bbp_get_forum_archive_template() |
Get the forum archive template |
bp-forums/core/template-loader.php: bbp_get_forum_edit_template() |
Get the forum edit template |
bp-forums/users/template.php: bbp_get_forums_for_current_user() |
Get the forums the current user has the ability to see and post to |
bp-forums/users/functions.php: bbp_forum_subscriptions_handler() |
Handles the front end subscribing and unsubscribing forums |
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/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_get_forum_replies_feed_link() |
Retrieve the link for the forum replies feed |
bp-forums/forums/template.php: bbp_get_forum_topics_feed_link() |
Retrieve the link for the forum feed |
bp-forums/forums/template.php: bbp_forum_get_subforums() |
Return subforums of given forum |
bp-forums/forums/template.php: bbp_get_forum() |
Gets a forum |
bp-forums/forums/template.php: bbp_get_forum_archive_title() |
Return the forum archive title |
bp-forums/forums/template.php: bbp_forum_post_type() |
Output the unique id of the custom post type for forums |
bp-forums/forums/template.php: bbp_has_forums() |
The main forum loop. |
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_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_subforum_ids() |
Returns the forum’s subforum 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_repair_forum_visibility() |
Recaches the private and hidden forums |
bp-forums/forums/functions.php: bbp_insert_forum() |
A wrapper for wp_insert_post() that also includes the necessary meta values for the forum to function properly. |
bp-forums/forums/functions.php: bbp_new_forum_handler() |
Handles the front end forum submission |
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/common/widgets.php: BBP_Forums_Widget::widget() |
Displays the output, the forum list |
bp-forums/common/classes.php: BBP_Walker_Dropdown::__construct() |
Set the tree_type |
bp-forums/common/classes.php: BBP_Walker_Dropdown::start_el() | |
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/shortcodes.php: BBP_Shortcodes::display_reply() |
Display the contents of a specific reply 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_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_forum_edit() |
Check if current page is a forum 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/template.php: bbp_is_forum() |
Check if current page is a Forums forum |
bp-forums/common/template.php: bbp_is_forum_archive() |
Check if we are viewing a forum archive. |
bp-forums/common/template.php: bbp_is_single_forum() |
Viewing a single forum |
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_statistics() |
Get the forum statistics |
bp-forums/admin.php: bp_forums_admin_forums_listing_add_tab() |
Add Navigation tab on top of the page BuddyBoss > Forums 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_add_admin_menu() |
Register the Forums component admin screen. |
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/replies/functions.php: bbp_update_reply_forum_id() |
Update the reply with its forum id it is in |
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.