Filter: ep_get_documents

apply_filters( 'ep_get_documents', $docs, $index, $type, $document_ids ) → {array}

Filter documents found by Elasticsearch through the /_mget endpoint.

Parameters:
Name Type Description
$docs array

Documents found indexed by ID

$index string

Index name

$type string

Index type

$document_ids array

Array of document ids

Since:
  • 3.6.0
Source:
Returns:

Documents to be returned

Type
array