| 2092 | | * @param array $commentdata Contains information on the comment. |
| | 2092 | * @param array $commentdata { |
| | 2093 | * Contains information on the comment. |
| | 2094 | * |
| | 2095 | * @type string $comment_agent The browser's user agent string of the user who added the comment. |
| | 2096 | * Default empty. |
| | 2097 | * @type int|string $comment_approved Whether the comment has been approved or trashed. Default 1. |
| | 2098 | * @type string $comment_author The nickname of the user who added the comment. Default empty. |
| | 2099 | * @type string $comment_author_email The email of the user who added the comment. Default empty. |
| | 2100 | * @type string $comment_author_IP The IP address of the user who added the comment. Default empty. |
| | 2101 | * @type string $comment_author_url The URL address of the comment author website. Default empty. |
| | 2102 | * @type string $comment_content The comment content. Default empty. |
| | 2103 | * @type string $comment_date The date of the comment. Default is the current time. |
| | 2104 | * @type string $comment_date_gmt The date of the comment in the GMT timezone. Default is |
| | 2105 | * the value of `$comment_date` in the GMT timezone. |
| | 2106 | * @type int $comment_karma The comment karma. Default 0. |
| | 2107 | * @type int $comment_parent Set this for the comment it belongs to, if any. Default 0. |
| | 2108 | * @type int|string $comment_post_ID The ID of the post the comment belongs to, if any. Default empty. |
| | 2109 | * @type string $comment_type The comment type. Default empty. |
| | 2110 | * @type int $user_id The ID of the user who added the comment. Default 0. |
| | 2111 | * } |