bbp_get_form_forum_content()

Return the value of forum content field


Description Description


Return Return

(string) Value of forum content field


Top ↑

Source Source

File: includes/forums/template.php

	function bbp_get_form_forum_content() {

		// Get _POST data
		if ( bbp_is_forum_form_post_request() && isset( $_POST['bbp_forum_content'] ) ) {
			$forum_content = wp_unslash( $_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 = '';
		}

		// Filter & return
		return apply_filters( 'bbp_get_form_forum_content', $forum_content );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.