bbp_get_form_topic_content()

Return the value of topic content field


Description Description


Return Return

(string) Value of topic content field


Top ↑

Source Source

File: includes/topics/template.php

	function bbp_get_form_topic_content() {

		// Get _POST data
		if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_content'] ) ) {
			$topic_content = wp_unslash( $_POST['bbp_topic_content'] );

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

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

		// Filter & return
		return apply_filters( 'bbp_get_form_topic_content', $topic_content );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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