Skip to content

Commit

Permalink
Merge pull request #15 from whitespace-se/feat/config-filter
Browse files Browse the repository at this point in the history
feat: Add `AlgoliaIndex/Config` filter
  • Loading branch information
sebastianthulin authored May 17, 2024
2 parents 287c73e + c8da6b8 commit 7dbaf5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/php/Helper/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public static function getIndex()
'X-Client-User' => get_current_user_id(),
]);

$config = apply_filters('AlgoliaIndex/Config', $config) ?? $config;

//Init client with config
$client = \Algolia\AlgoliaSearch\SearchClient::createWithConfig($config);

Expand Down

0 comments on commit 7dbaf5a

Please sign in to comment.