Automattic\WooCommerce\Admin\API\Reports

Segmenter::get_segment_labels()protectedWC 1.0

Return all segment labels for given segmentby query parameter.

Method of the class: Segmenter{}

No Hooks.

Return

Array.

Usage

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

Segmenter::get_segment_labels() code WC 7.3.0

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

	return $this->segment_labels;
}