function get_comment_id_fields( $id = 0 ) {}

Retrieve hidden input HTML for replying to comments.


  • $id

Return values

returns:Hidden input HTML for replying to comments

Defined filters

  • comment_id_fields
    apply_filters('comment_id_fields', $result, $id, $replytoid)

Source code

function get_comment_id_fields( $id = 0 ) {

	if ( empty( $id ) )

		$id = get_the_ID();

	$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;

	$result  = "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n";

	$result .= "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n";

	return apply_filters('comment_id_fields', $result, $id, $replytoid);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: