From 7aa394241d5a7ffc2021c26388b29b1e0eacc202 Mon Sep 17 00:00:00 2001 From: Ivan Lopez Date: Thu, 4 Sep 2014 11:28:46 -0400 Subject: [PATCH] add ep_search_fields filter for adding custom search fields that are made with the ep_post_sync_args filter --- classes/class-ep-api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/class-ep-api.php b/classes/class-ep-api.php index 5d7458122f..08b65ff205 100644 --- a/classes/class-ep-api.php +++ b/classes/class-ep-api.php @@ -572,6 +572,8 @@ public function format_args( $args ) { } } + $search_fields = apply_filters( 'ep_search_fields', $search_fields ); + $query = array( 'bool' => array( 'must' => array(