WordPress at Your Fingertips
function is not described

WP_Terms_List_Table::column_posts() public WP 1.0

{} It's a method of the class: WP_Terms_List_Table{}

No Hooks.

Return

String.

Usage

$WP_Terms_List_Table = new WP_Terms_List_Table();
$WP_Terms_List_Table->column_posts( $tag );
$tag(WP_Term) (required)
Term object.

Code of WP_Terms_List_Table::column_posts() WP 5.8.1

public function column_posts( $tag ) {
	$count = number_format_i18n( $tag->count );

	$tax = get_taxonomy( $this->screen->taxonomy );

	$ptype_object = get_post_type_object( $this->screen->post_type );
	if ( ! $ptype_object->show_ui ) {
		return $count;
	}

	if ( $tax->query_var ) {
		$args = array( $tax->query_var => $tag->slug );
	} else {
		$args = array(
			'taxonomy' => $tax->name,
			'term'     => $tag->slug,
		);
	}

	if ( 'post' !== $this->screen->post_type ) {
		$args['post_type'] = $this->screen->post_type;
	}

	if ( 'attachment' === $this->screen->post_type ) {
		return "<a href='" . esc_url( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
	}

	return "<a href='" . esc_url( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>";
}