From: Steve Sutton Date: Fri, 14 Apr 2017 20:47:06 +0000 (-0400) Subject: Fix the search filter X-Git-Tag: v1.0.0^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=82bfc0c8acc32e91d4ca9cb77364f885a7de8e6f;p=WP-Plugins%2Fglm-member-db-fields.git Fix the search filter Need to bring in the current array so it can add to it. --- 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 *