Preloadable_Interface

Indicates that a filter should preload counts of possible choices on page load.

Table of Contents

get_all_choices_counts()  : array<string|int, mixed>
Generate counts of all indexed choices for a filter.

Methods

get_all_choices_counts()

Generate counts of all indexed choices for a filter.

public get_all_choices_counts([array<string|int, mixed> $post_ids = [] ]) : array<string|int, mixed>
Parameters
$post_ids : array<string|int, mixed> = []

option list of post ids needed for pre load. Usually required on taxonomy pages.

Return values
array<string|int, mixed>

Search results