Definition:
function get_comment_id_fields( $id = 0 ) {}
Retrieve hidden input HTML for replying to comments.
Parameters
- $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);
}
1318

February 12, 2011 


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