do_action( "comment_{$new_status}_{$comment->comment_type}", int $comment_ID, WP_Comment $comment )

Fires when the status of a specific comment type is in transition.


Description Description

The dynamic portions of the hook name, $new_status, and $comment->comment_type, refer to the new comment status, and the type of comment, respectively.

Typical comment types include an empty string (standard comment), ‘pingback’, or ‘trackback’.


Parameters Parameters

$comment_ID

(int) The comment ID.

$comment

(WP_Comment) Comment object.


Top ↑

Source Source

File: wp-includes/comment.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.