This is so it can append to the array.
} // if doing amenity search
$amenityData = ( is_array( $amenityData ) ) ? array_filter( $amenityData ) : array();
- $whereParts = apply_filters('glm-member-db-front-search-query', $where);
+ $whereParts = apply_filters('glm-member-db-front-search-query', array());
if ( is_array( $whereParts ) && count( $whereParts ) > 0 ) {
$where .= $whereSep.implode(" AND ", $whereParts);
+ echo '<pre>$where: ' . print_r( $where, true ) . '</pre>';
$whereSep = ' AND ';
}