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

	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

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.