WP_Media_List_Table::column_comments( WP_Post $post )

In this article

Handles the comments column output.

Parameters

$postWP_Postrequired
The current WP_Post object.

Source

public function column_comments( $post ) {
	echo '<div class="post-com-count-wrapper">';

	if ( isset( $this->comment_pending_count[ $post->ID ] ) ) {
		$pending_comments = $this->comment_pending_count[ $post->ID ];
	} else {
		$pending_comments = get_pending_comments_num( $post->ID );
	}

	$this->comments_bubble( $post->ID, $pending_comments );

	echo '</div>';
}

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.