comment_id_not_found хук-событиеWP 1.5.0

Fires when a comment is attempted on a post that does not exist.

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

add_action( 'comment_id_not_found', 'wp_kama_comment_id_not_found_action' );

/**
 * Function for `comment_id_not_found` action-hook.
 * 
 * @param int $comment_post_id Post ID.
 *
 * @return void
 */
function wp_kama_comment_id_not_found_action( $comment_post_id ){

	// action...
}
$comment_post_id(int)
Post ID.

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

С версии 1.5.0 Введена.

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

wp_handle_comment_submission()
comment_id_not_found
wp-includes/comment.php 3520
do_action( 'comment_id_not_found', $comment_post_id );

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

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