comment_id_fields

Output hidden input HTML for replying to comments.

Description

comment_id_fields( (int) $id = 0 ); 

Parameters (1)

0. $id — Optional. (int)
Post ID. Default current post ID.

Usage

  1. if ( !function_exists( 'comment_id_fields' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Optional. Post ID. Default current post ID. 
  5. $id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = comment_id_fields($id); 
  9.  

Defined (1)

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

/wp-includes/comment-template.php  
  1. function comment_id_fields( $id = 0 ) { 
  2. echo get_comment_id_fields( $id );