WP_Terms_List_Table::column_description() WordPress Method

The WP_Terms_List_Table::column_description() is a method of the WP_Terms_List_Table class. This method is responsible for displaying the description column on the terms list table. The description column is added by the WP_Terms_List_Table::add_columns() method.

WP_Terms_List_Table::column_description( 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_description( $tag ) {
		if ( $tag->description ) {
			return $tag->description;
		} else {
			return '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . __( 'No description' ) . '</span>';
		}
	}

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.