WP_List_Table::get_table_classes()protectedWP 3.1.0

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

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

Хуков нет.

Возвращает

Строку[]. Array of CSS classes for the table tag.

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

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

Список изменений

С версии 3.1.0 Введена.

Код WP_List_Table::get_table_classes() WP 6.5.2

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'] );
}