WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

Segmenter::get_segment_labels() protected WC 1.0

Return all segment labels 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_segment_labels();

Code of Segmenter::get_segment_labels() WC 5.3.0

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

	return $this->segment_labels;
}