bbp_get_form_forum_content()

Return the value of forum content field

Description

Return

(string) Value of forum content field

Source

File: bp-forums/forums/template.php

	function bbp_get_form_forum_content() {

		// Get _POST data
		if ( bbp_is_post_request() && isset( $_POST['bbp_forum_content'] ) ) {
			$forum_content = stripslashes( $_POST['bbp_forum_content'] );

		// Get edit data
		} elseif ( bbp_is_forum_edit() ) {
			$forum_content = bbp_get_global_post_field( 'post_content', 'raw' );

		// No data
		} else {
			$forum_content = '';
		}

		return apply_filters( 'bbp_get_form_forum_content', $forum_content );
	}

Changelog

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.