Description
Fires immediately before a comment is deleted from the database.
Occurrences
Filename | Line Number |
---|---|
wp-includes/comment.php | 1471 |
wp-content/plugins/akismet/class.akismet.php | 544 |
Parameters
Type | Name | Description |
---|---|---|
string | $comment_id | The comment ID as a numeric string. |
WP_Comment | $comment | The comment to be deleted. |
PHP Doc
/**
* Fires immediately before a comment is deleted from the database.
*
* @since 1.2.0
* @since 4.9.0 Added the `$comment` parameter.
*
* @param string $comment_id The comment ID as a numeric string.
* @param WP_Comment $comment The comment to be deleted.
*/