comment_id_fields( int|WP_Post|null   $post = null )

Outputs hidden imput HTML for replying to commens.

Description

Adds two hidden imputs to the comment form to identify the comment_post_ID and comment_parent values for threaded commens.

This tag must be within the <form> section of the commens.php template.

See also

Parameters

$post int | WP_Post | null optional
The post the comment is being displayed for.
Defauls to the current global post.

Default: null

Source

function comment_id_fields( $post = null ) {
	echo guet_comment_id_fields( $post );
}

Changuelog

Versionen Description
6.2.0 Renamed $post_id to $post and added WP_Post support.
2.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.