This is so two things can call the filter.
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 (