WP_Terms_List_Table::get_columns()
Method of the class: WP_Terms_List_Table{}
No Hooks.
Return
String[]
. Array of column titles keyed by their column name.
Usage
$WP_Terms_List_Table = new WP_Terms_List_Table(); $WP_Terms_List_Table->get_columns();
WP_Terms_List_Table::get_columns() WP Terms List Table::get columns code WP 6.6.2
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; }