bbp_get_form_topic_log_edit()

Return checked value of topic log edit field

Description

Return

(string) Topic log edit checked value

Source

File: bp-forums/topics/template.php

4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
function bbp_get_form_topic_log_edit() {
 
    // Get _POST data
    if ( bbp_is_post_request() && isset( $_POST['bbp_log_topic_edit'] ) ) {
        $topic_revision = (int) $_POST['bbp_log_topic_edit'];
 
    // No data
    } else {
        $topic_revision = 1;
    }
 
    // Get checked output
    $checked = checked( $topic_revision, true, false );
 
    return apply_filters( 'bbp_get_form_topic_log_edit', $checked, $topic_revision );
}

Changelog

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