WPDev.one
Core Function
View Source on Trac ↗

comment_form()

comment_form( mixed $args = array(), mixed $post = null )

Outputs a complete commenting form for use within a template.

Parameters 2 required

Name / Type Description
array

$args { Optional. Default arguments and form fields to override.

Required
(int

| WP_Post) $post Optional. Post ID or WP_Post object to generate the form for. Default current post.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-includes/comment-template.php
Advertisement