WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Хостинг, VPS/VDS и отдельные сервера только на SSD дисках. 7 дней бесплатного тестирования.
событие не описано

comment_(new_status)_(comment_type) хук-событие . WP 2.7.0

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

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'.

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

add_action( 'comment_(new_status)_(comment_type)', 'action_function_name_5230', 10, 2 );
function action_function_name_5230( $comment_ID, $comment ){
	// action...
}
$comment_ID(число)
The comment ID.
$comment(WP_Comment)
Comment object.

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

wp_transition_comment_status()
wp-includes/comment.php 1642
do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment );

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

wp-includes/default-filters.php 42
add_filter( 'comment_text', 'wp_kses_post' );
wp-includes/default-filters.php 131
add_filter( 'comment_text', 'capital_P_dangit', 31 );
wp-includes/default-filters.php 179
add_filter( 'comment_text', 'convert_chars' );
wp-includes/default-filters.php 180
add_filter( 'comment_text', 'make_clickable', 9 );
wp-includes/default-filters.php 181
add_filter( 'comment_text', 'force_balance_tags', 25 );
wp-includes/default-filters.php 182
add_filter( 'comment_text', 'convert_smilies', 20 );
wp-includes/default-filters.php 185
add_filter( 'comment_excerpt', 'convert_chars' );
wp-includes/default-filters.php 210
add_filter( 'comment_author_rss', 'ent2ncr', 8 );
wp-includes/default-filters.php 211
add_filter( 'comment_text_rss', 'ent2ncr', 8 );
wp-includes/default-filters.php 212
add_filter( 'comment_text_rss', 'esc_html' );
wp-includes/default-filters.php 213
add_filter( 'comment_text_rss', 'wp_staticize_emoji' );
wp-includes/default-filters.php 237
add_filter( 'comment_flood_filter', 'wp_throttle_comment_flood', 10, 3 );
wp-includes/default-filters.php 343
add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );
wp-includes/default-filters.php 425
add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
wp-includes/default-filters.php 426
add_action( 'comment_post', 'wp_new_comment_notify_postauthor' );
wp-admin/includes/class-wp-comments-list-table.php 45
add_filter( 'comment_author', array( $this, 'floated_admin_avatar' ), 10, 2 );