Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileListTable::get_sources_list()protectedWC 1.0

Get the existing log sources for the filter dropdown.

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

Хуков нет.

Возвращает

Массив.

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

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

Код FileListTable::get_sources_list() WC 9.7.1

protected function get_sources_list(): array {
	$sources = $this->file_controller->get_file_sources();
	if ( is_wp_error( $sources ) ) {
		return array();
	}

	sort( $sources );

	return $sources;
}