Filterable_Filter
Filterable_Filter provides a single method "get_indexed_values".
The method is responsible for retrieving the data from the filter.
Tags
Table of Contents
- get_indexed_values() : array<string|int, mixed>
- Get the indexed values for this filter type.
- get_matching_posts() : array<string|int, mixed>
- Get the posts that match the filter.
Methods
get_indexed_values()
Get the indexed values for this filter type.
public
get_indexed_values([array<string|int, mixed> $posts = [] ]) : array<string|int, mixed>
Parameters
- $posts : array<string|int, mixed> = []
-
The posts to look up. When empty, all values will be returned.
Return values
array<string|int, mixed> —get_matching_posts()
Get the posts that match the filter.
public
get_matching_posts() : array<string|int, mixed>