WordPress at a glance
action is not described

trash_comment action-hook . WP 2.9.0

Fires immediately before a comment is sent to the Trash.

Usage

add_action( 'trash_comment', 'action_function_name_1475', 10, 2 );
function action_function_name_1475( $comment_id, $comment ){
	// action...
}
$comment_id(int)
The comment ID.
$comment(WP_Comment)
The comment to be trashed.

Список изменений

С версии 2.9.0 Введена.
С версии 4.9.0 Added the $comment parameter.

Где вызывается хук

wp_trash_comment()
trash_comment
wp-includes/comment.php 1563
do_action( 'trash_comment', $comment->comment_ID, $comment );

Где используется хук в ядре WordPress

Использование не найдено.