→ 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

add_filter( 'facetwp_pre_filtered_post_ids', function( $post_ids, $class ) {
    return $post_ids;
}, 10, 2 );