bbp_get_reply_content( int $reply_id )
Return the content of the reply
Description
Parameters
- $reply_id
-
(Optional) reply id
Return
(string) Content of the reply
Source
File: bp-forums/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 );
return apply_filters( 'bbp_get_reply_content', $content, $reply_id );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r2780) | 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.