comment_id_fields filter-hookWP 3.0.0

Filters the returned comment ID fields.

Usage

add_filter( 'comment_id_fields', 'wp_kama_comment_id_fields_filter', 10, 3 );

/**
 * Function for `comment_id_fields` filter-hook.
 * 
 * @param string $result      The HTML-formatted hidden ID field comment elements.
 * @param int    $post_id     The post ID.
 * @param int    $reply_to_id The ID of the comment being replied to.
 *
 * @return string
 */
function wp_kama_comment_id_fields_filter( $result, $post_id, $reply_to_id ){

	// filter...
	return $result;
}
$result(string)
The HTML-formatted hidden ID field comment elements.
$post_id(int)
The post ID.
$reply_to_id(int)
The ID of the comment being replied to.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

get_comment_id_fields()
comment_id_fields
wp-includes/comment-template.php 1952
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );

Where the hook is used in WordPress

Usage not found.