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.
Return
(string)
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">—</span><span class="screen-reader-text">' . __( 'No description' ) . '</span>'; } }
Expand full source codeCollapse full source codeView on TracView on GitHub