Fix the search filter
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 14 Apr 2017 20:47:06 +0000 (16:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 14 Apr 2017 20:47:06 +0000 (16:47 -0400)
Need to bring in the current array so it can add to it.

setup/frontHooks.php

index ed4f1b7..6c33129 100644 (file)
@@ -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 *