WordPress at Your Fingertips
function is not described

WP_List_Table::get_table_classes() protected WP 3.1.0

Gets a list of CSS classes for the WP_List_Table table tag.

{} It's a method of the class: WP_List_Table{}

No Hooks.

Return

String[]. Array of CSS classes for the table tag.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_table_classes();

Changelog

Since 3.1.0 Introduced.

Code of WP_List_Table::get_table_classes() WP 5.8.1

protected function get_table_classes() {
	$mode = get_user_setting( 'posts_list_mode', 'list' );

	$mode_class = esc_attr( 'table-view-' . $mode );

	return array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] );
}