WP_Terms_List_Table::column_links() WordPress Method

The WP_Terms_List_Table::column_links() method is used to generate the links for the various columns in the terms list table. This includes the links for the checkboxes,cb,name,description,slug,posts, and links columns.

WP_Terms_List_Table::column_links( WP_Term $tag ) #


Parameters

$tag

(WP_Term)(Required)Term object.


Top ↑

Return

(string)


Top ↑

Source

File: wp-admin/includes/class-wp-terms-list-table.php

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

		if ( $count ) {
			$count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>";
		}

		return $count;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.