Action: ep_retrieve_aggregations

do_action( 'ep_retrieve_aggregations', $aggregations, $query, $scope, $query_args )

Deprecated way to retrieve aggregations.

Parameters:
Name Type Description
$aggregations array

Elasticsearch aggregations

$query array

Prepared Elasticsearch query

$scope string

Backwards compat for scope parameter.

$query_args array

Current WP Query arguments

Source: