bbp_get_form_forum_type()

Return value of forum type

Description

Return

(string) Value of topic content field

Source

File: bp-forums/forums/template.php

	function bbp_get_form_forum_type() {

		// Get _POST data
		if ( bbp_is_post_request() && isset( $_POST['bbp_forum_type'] ) ) {
			$forum_type = $_POST['bbp_forum_type'];

		// Get edit data
		} elseif ( bbp_is_forum_edit() ) {
			$forum_type = bbp_get_forum_type();

		// No data
		} else {
			$forum_type = 'forum';
		}

		return apply_filters( 'bbp_get_form_forum_type', esc_attr( $forum_type ) );
	}

Changelog

Changelog
Version Description
bbPress (r3563) 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.