Filterable_Filter

Filterable_Filter provides a single method "get_indexed_values".

The method is responsible for retrieving the data from the filter.

Tags
codeCoverageIgnore
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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>
Return values
array<string|int, mixed>

Search results