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
3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 | 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.