From: Steve Sutton Date: Fri, 14 Apr 2017 20:48:27 +0000 (-0400) Subject: Append the parts array. X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=38b09fe9887ba1d329f35bb07330379b0c16c24c;p=WP-Themes%2Fbrewbakers.git Append the parts array. This is so two things can call the filter. --- 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 (