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
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.