bbp_get_form_topic_forum()
Return value of topic forum
Description
Return
(string) Value of topic content field
Source
File: bp-forums/topics/template.php
function bbp_get_form_topic_forum() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST['bbp_forum_id'] ) ) { $topic_forum = (int) $_POST['bbp_forum_id']; // Get edit data } elseif ( bbp_is_topic_edit() ) { $topic_forum = bbp_get_topic_forum_id(); // No data } else { $topic_forum = 0; } return apply_filters( 'bbp_get_form_topic_forum', $topic_forum ); }
Changelog
Version | Description |
---|---|
bbPress (r2976) | Introduced. |
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.