bbp_get_form_topic_title()
Return the value of topic title field
Description Description
Return Return
(string) Value of topic title field
Source Source
File: includes/topics/template.php
function bbp_get_form_topic_title() {
// Get _POST data
if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_title'] ) ) {
$topic_title = wp_unslash( $_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 = '';
}
// Filter & return
return apply_filters( 'bbp_get_form_topic_title', $topic_title );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |