bbp_get_form_topic_log_edit

Return checked value of topic log edit field.

Description

(string) bbp_get_form_topic_log_edit(); 

Returns (string)

Topic log edit checked value


Usage

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

Defined (1)

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

/includes/topics/template.php  
  1. function bbp_get_form_topic_log_edit() { 
  2.  
  3. // Get _POST data 
  4. if ( bbp_is_post_request() && isset( $_POST['bbp_log_topic_edit'] ) ) { 
  5. $topic_revision = (int) $_POST['bbp_log_topic_edit']; 
  6.  
  7. // No data 
  8. } else { 
  9. $topic_revision = 1; 
  10.  
  11. // Get checked output 
  12. $checked = checked( $topic_revision, true, false ); 
  13.  
  14. return apply_filters( 'bbp_get_form_topic_log_edit', $checked, $topic_revision );