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
2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 | 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.