WordPress at Your Fingertips
function is not described

WP_Posts_List_Table::get_table_classes() protected WP 1.0

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

No Hooks.

Return

Array.

Usage

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

Notes

  • Global. String. $mode List table view mode.

Code of WP_Posts_List_Table::get_table_classes() WP 5.8.2

protected function get_table_classes() {
	global $mode;

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

	return array(
		'widefat',
		'fixed',
		'striped',
		$mode_class,
		is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts',
	);
}