WordPress at a glance
function is not described


Segmenter::get_totals_segments() public WC 1.0

Returns an array of segments for totals part of REST response.

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

No Hooks.


Array. Nothing.


$Segmenter = new Segmenter();
$Segmenter->get_totals_segments( $query_params, $table_name );
$query_params(array) (required)
Totals SQL query parameters.
$table_name(string) (required)
Name of the SQL table that is the main order stats table.

Code of Segmenter::get_totals_segments() WC 5.2.2

public function get_totals_segments( $query_params, $table_name ) {
	$segments = $this->get_segments( 'totals', $query_params, $table_name );
	$segments = $this->fill_in_missing_segments( $segments );

	return $segments;