apply_filters( 'appendResults', append, results, group, field, current_element, parameters, resultsContainer ) → {boolean}

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:
Name Type Description
append boolean

Append the results

results Object

The search results

group string

The group name

field Object

The field object

current_element Object

The current element who triggered the event

parameters Object

The search parameters

resultsContainer Object

The results container

Source:
Returns:

append - Append the results

Type
boolean