Fires immediately after a comment is inserted into the database.
$comment_idint
$comment_approvedint|string
'spam' if spam.$commentdataarray
do_action( 'comment_post', $comment_id, $commentdata['comment_approved'], $commentdata );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_post