trashed_post_comments action-hookWP 2.9.0

Fires after comments are sent to the Trash.

Usage

add_action( 'trashed_post_comments', 'wp_kama_trashed_post_comments_action', 10, 2 );

/**
 * Function for `trashed_post_comments` action-hook.
 * 
 * @param int   $post_id  Post ID.
 * @param array $statuses Array of comment statuses.
 *
 * @return void
 */
function wp_kama_trashed_post_comments_action( $post_id, $statuses ){

	// action...
}
$post_id(int)
Post ID.
$statuses(array)
Array of comment statuses.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

wp_trash_post_comments()
trashed_post_comments
wp-includes/post.php 3882
do_action( 'trashed_post_comments', $post_id, $statuses );

Where the hook is used in WordPress

Usage not found.