WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

Segmenter::get_all_segments() protected WC 1.0

Return all segment ids for given segmentby query parameter.

{} It's a method of the class: Segmenter{}

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_all_segments();

Code of Segmenter::get_all_segments() WC 5.2.2

<?php
protected function get_all_segments() {
	if ( ! is_array( $this->all_segment_ids ) ) {
		$this->set_all_segments();
	}

	return $this->all_segment_ids;
}