bbp_get_form_topic_title()
Return the value of topic title field
Description
Return
(string) Value of topic title field
Source
File: bp-forums/topics/template.php
3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 | function bbp_get_form_topic_title() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST [ 'bbp_topic_title' ] ) ) { $topic_title = $_POST [ 'bbp_topic_title' ]; // Get edit data } elseif ( bbp_is_topic_edit() ) { $topic_title = bbp_get_global_post_field( 'post_title' , 'raw' ); // No data } else { $topic_title = '' ; } return apply_filters( 'bbp_get_form_topic_title' , esc_attr( $topic_title ) ); } |
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.