Used By
| Used By | Description |
|---|---|
| wp-includes/comment.php: wp_new_comment() | Adds a new comment to the database. |
Fires immediately after a comment is inserted into the database.
(int) The comment ID.
(int|string) 1 if the comment is approved, 0 if not, 'spam' if spam.
(array) Comment data.
File: wp-includes/comment.php
| Version | Description |
|---|---|
| 4.5.0 | The $commentdata parameter was added. |
| 1.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_post