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

  1. if ( !function_exists( 'bbp_get_form_reply_log_edit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_form_reply_log_edit(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/replies/template.php  
  1. function bbp_get_form_reply_log_edit() { 
  2.  
  3. // Get _POST data 
  4. if ( bbp_is_post_request() && isset( $_POST['bbp_log_reply_edit'] ) ) { 
  5. $reply_revision = $_POST['bbp_log_reply_edit']; 
  6.  
  7. // No data 
  8. } else { 
  9. $reply_revision = 1; 
  10.  
  11. return apply_filters( 'bbp_get_form_reply_log_edit', checked( $reply_revision, true, false ) );