Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
feat(indexing): introduce a way to filter indexed searchable post types
Browse files Browse the repository at this point in the history
Closes: #649
  • Loading branch information
rayrutjes committed Sep 19, 2017
1 parent 3d7759d commit 693ecfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-algolia-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public function load_indices() {

// Add a searchable posts index.
$searchable_post_types = get_post_types( array( 'exclude_from_search' => false ), 'names' );
$searchable_post_types = (array) apply_filters( 'algolia_searchable_post_types', $searchable_post_types );
$this->indices[] = new Algolia_Searchable_Posts_Index( $searchable_post_types );

// Add one posts index per post type.
Expand Down

0 comments on commit 693ecfa

Please sign in to comment.