bbp_get_form_reply_content()

Return the value of reply content field

Description

Return

(string) Value of reply content field

Source

File: bp-forums/replies/template.php

	function bbp_get_form_reply_content() {

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

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

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

		return apply_filters( 'bbp_get_form_reply_content', $reply_content );
	}

Changelog

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