WP_Posts_List_Table::get_table_classes()protectedWP 1.0

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.

WP_Posts_List_Table::get_table_classes() code WP 6.5.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',
	);
}