From 82bfc0c8acc32e91d4ca9cb77364f885a7de8e6f Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 14 Apr 2017 16:47:06 -0400 Subject: [PATCH] Fix the search filter Need to bring in the current array so it can add to it. --- setup/frontHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index ed4f1b7..6c33129 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -42,8 +42,8 @@ add_filter('glm-member-db-front-members-list-info', function($content, $id) { 2 ); -add_filter('glm-member-db-front-search-query', function() { - $queryParts = array(); +add_filter('glm-member-db-front-search-query', function( $queryParts ) { + //$queryParts = array(); // Get all custom fields $customFields = $this->wpdb->get_results( "SELECT * -- 2.17.1