wp_insert_comment

Advertisement

Summery Summery

Fires immediately after a comment is inserted into the database.

Syntax Syntax

do_action( 'wp_insert_comment', int $id, WP_Comment $comment )

Parameters Parameters

$id

(int) The comment ID.

$comment

(WP_Comment) Comment object.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.