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
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
| 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.