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
| 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 |
Returns:
append - Append the results
- Type:
- boolean