WP_Terms_List_Table::get_columns(): string[]

In this article

Return

string[] Array of column titles keyed by their column name.

Source

public function get_columns() {
	$columns = array(
		'cb'          => '<input type="checkbox" />',
		'name'        => _x( 'Name', 'term name' ),
		'description' => __( 'Description' ),
		'slug'        => __( 'Slug' ),
	);

	if ( 'link_category' === $this->screen->taxonomy ) {
		$columns['links'] = __( 'Links' );
	} else {
		$columns['posts'] = _x( 'Count', 'Number/count of items' );
	}

	return $columns;
}

User Contributed Notes

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