From c8da6b896b5ec9d86f74ffcea7d864f4e764a240 Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Thu, 16 May 2024 15:58:53 +0200 Subject: [PATCH] feat: Add `AlgoliaIndex/Config` filter --- source/php/Helper/Index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/php/Helper/Index.php b/source/php/Helper/Index.php index 4f78f4f1..a90a8f6f 100644 --- a/source/php/Helper/Index.php +++ b/source/php/Helper/Index.php @@ -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);