WP_Posts_List_Table::get_table_classes()protectedWP 1.0

Метод класса: WP_Posts_List_Table{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_table_classes();

Заметки

  • Global. Строка. $mode List table view mode.

Код WP_Posts_List_Table::get_table_classes() 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',
	);
}