Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileListTable::get_sortable_columns()protectedWC 1.0

Gets a list of sortable columns.

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

Хуков нет.

Возвращает

Массив.

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

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

Код FileListTable::get_sortable_columns() WC 9.7.1

protected function get_sortable_columns(): array {
	$sortable = array(
		'source'   => array( 'source' ),
		'created'  => array( 'created' ),
		'modified' => array( 'modified', true ),
		'size'     => array( 'size' ),
	);

	return $sortable;
}