bbp_get_form_reply_log_edit
Return checked value of reply log edit field.
Description
(string) bbp_get_form_reply_log_edit();
Returns (string)
Reply log edit checked value
Usage
if ( !function_exists( 'bbp_get_form_reply_log_edit' ) ) { require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; } // NOTICE! Understand what this does before running. $result = bbp_get_form_reply_log_edit();
Defined (1)
The function is defined in the following location(s).
- /includes/replies/template.php
- function bbp_get_form_reply_log_edit() {
- // Get _POST data
- if ( bbp_is_post_request() && isset( $_POST['bbp_log_reply_edit'] ) ) {
- $reply_revision = $_POST['bbp_log_reply_edit'];
- // No data
- } else {
- $reply_revision = 1;
- }
- return apply_filters( 'bbp_get_form_reply_log_edit', checked( $reply_revision, true, false ) );
- }