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

2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
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.