WP_Posts_List_Table::column_comments()publicWP 4.3.0

Handles the comments column output.

Метод класса: WP_Posts_List_Table{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$WP_Posts_List_Table = new WP_Posts_List_Table();
$WP_Posts_List_Table->column_comments( $post );
$post(WP_Post) (обязательный)
The current WP_Post object.

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

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

Код WP_Posts_List_Table::column_comments() WP 6.5.2

<?php
public function column_comments( $post ) {
	?>
	<div class="post-com-count-wrapper">
	<?php
		$pending_comments = isset( $this->comment_pending_count[ $post->ID ] ) ? $this->comment_pending_count[ $post->ID ] : 0;

		$this->comments_bubble( $post->ID, $pending_comments );
	?>
	</div>
	<?php
}