Filter: ep_instant_results_excluded_post_types

apply_filters( 'ep_instant_results_excluded_post_types', $excluded ) → {Array.<string>}

Filter post type slugs to exclude from Instant Results.

Excluded post types are hidden from the Post Type facet and removed from the search template so their content does not appear in results. The search template is generated and saved when Instant Results settings are saved, so after changing this filter, re-save the Instant Results or Weighting settings to regenerate the template.

Parameters:
Name Type Description
$excluded Array.<string>

Post type slugs to exclude (e.g., ['page']).

Since:
  • 5.3.4
Source:
Returns:

Filtered exclusions.

Type
Array.<string>