→ facetwp_pre_filtered_post_ids

Overview

Choose the initial bucket of post IDs, before any filtering is applied.

Parameters

  • $post_ids | array | An array of post IDs
  • $class | object | The FacetWP_Facet class (see /includes/class-facet.php)

Usage

<?php
function my_facetwp_pre_filtered_post_ids( $post_ids, $class ) {
    return $post_ids;
}

add_filter( 'facetwp_pre_filtered_post_ids', 'my_facetwp_pre_filtered_post_ids', 10, 2 );