bbp_get_form_forum_title()
Return the value of forum title field
Description
Return
(string) Value of forum title field
Source
File: bp-forums/forums/template.php
function bbp_get_form_forum_title() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST['bbp_forum_title'] ) ) { $forum_title = $_POST['bbp_forum_title']; // Get edit data } elseif ( bbp_is_forum_edit() ) { $forum_title = bbp_get_global_post_field( 'post_title', 'raw' ); // No data } else { $forum_title = ''; } return apply_filters( 'bbp_get_form_forum_title', esc_attr( $forum_title ) ); }
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.