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

The comment ID.

$comment

Comment object.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply