→ facetwp_filtered_post_ids

Overview

Override the final bucket of post IDs, after filtering has been applied.

Parameters

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

Usage

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

add_filter( 'facetwp_filtered_post_ids', 'my_facetwp_filtered_post_ids', 10, 2 );