appendResults

apply_filters( 'appendResults', append boolean, results Object, group string, field Object, current_element Object, parameters Object, resultsContainer Object )

  add_filter( 'appendResults', append boolean, results Object, group string, field Object, current_element Object, parameters Object, resultsContainer Object )

Append the search results.

Check if we need to replace the results or append them,
If the filter returns true, we append the results, otherwise we replace them.

Usage: infinite scroll or load more button

Parameters

NameTypeDescription
appendboolean

Append the results

resultsObject

The search results

groupstring

The group name

fieldObject

The field object

current_elementObject

The current element who triggered the event

parametersObject

The search parameters

resultsContainerObject

The results container

Returns:

append - Append the results

Type: 
boolean