From 6001111e580fe953f06349ba8bfe0d15fcf0e9fe Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Wed, 16 Nov 2022 14:49:52 -0300 Subject: [PATCH] add support for elasticpress in searches used by blocksy --- tainacan-blocksy/inc/plugin.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tainacan-blocksy/inc/plugin.php b/tainacan-blocksy/inc/plugin.php index 98b2729..fa2a2dd 100644 --- a/tainacan-blocksy/inc/plugin.php +++ b/tainacan-blocksy/inc/plugin.php @@ -1,4 +1,21 @@ is_active() && + $query->is_search && + (is_search() || wp_doing_ajax()) + ) { + $query->set('ep_integrate', true); + } + } + return $query; +}); /** * Uses Template redirect for setting the proper template to items