From 38b09fe9887ba1d329f35bb07330379b0c16c24c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 14 Apr 2017 16:48:27 -0400 Subject: [PATCH] Append the parts array. This is so two things can call the filter. --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index b5b559f..e8dff48 100644 --- a/functions.php +++ b/functions.php @@ -27,8 +27,8 @@ add_filter('manufacturer_ids', function(){ return $ids; }); -add_filter('glm-member-db-front-search-query', function() { - $queryParts = array(); +add_filter('glm-member-db-front-search-query', function( $queryParts ) { + //$queryParts = array(); if ( isset( $_REQUEST['manufacturers'] ) && is_array( $_REQUEST['manufacturers'] ) && !empty( $_REQUEST['manufacturers'] ) ) { $catSelectedForQuery = implode( ',', $_REQUEST['manufacturers'] ); $queryParts[] = " T.id in ( -- 2.17.1