bbp_get_reply_content( int $reply_id )

Return the content of the reply


Description Description


Parameters Parameters

$reply_id

(Optional) reply id


Top ↑

Return Return

(string) Content of the reply


Top ↑

Source Source

File: includes/replies/template.php

	function bbp_get_reply_content( $reply_id = 0 ) {
		$reply_id = bbp_get_reply_id( $reply_id );

		// Check if password is required
		if ( post_password_required( $reply_id ) ) {
			return get_the_password_form();
		}

		$content = get_post_field( 'post_content', $reply_id );

		// Filter & return
		return apply_filters( 'bbp_get_reply_content', $content, $reply_id );
	}

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.