Automattic\WooCommerce\Admin\API\Reports

Segmenter::get_all_segments()protectedWC 1.0

Return all segment ids 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_all_segments();

Segmenter::get_all_segments() code WC 7.3.0

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

	return $this->all_segment_ids;
}