bbp_get_form_forum_parent()
Return value of forum parent
Description
Return
(string) Value of topic content field
Source
File: bp-forums/forums/template.php
2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 | function bbp_get_form_forum_parent() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST [ 'bbp_forum_id' ] ) ) { $forum_parent = $_POST [ 'bbp_forum_id' ]; // Get edit data } elseif ( bbp_is_forum_edit() ) { $forum_parent = bbp_get_forum_parent_id(); // No data } else { $forum_parent = 0; } return apply_filters( 'bbp_get_form_forum_parent' , esc_attr( $forum_parent ) ); } |
Changelog
Version | Description |
---|---|
bbPress (r3551) | 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.