bbp_merge_topic_form_fields

Merge topic form fields.

Description

bbp_merge_topic_form_fields(); 

Output the required hidden fields when merging a topic


Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_merge_topic_form_fields() { 
  2. ?> 
  3.  
  4. <input type="hidden" name="action" id="bbp_post_action" value="bbp-merge-topic" /> 
  5. <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="<?php bbp_topic_id(); ?>" /> 
  6.  
  7. <?php wp_nonce_field( 'bbp-merge-topic_' . bbp_get_topic_id() );