Show empty taxonomies
<?php
/**
* Show empty taxonomies
*/
add_filter('wpsight_search_form_details', 'custom_search_form_details', 11);
function custom_search_form_details($search_details) {
$search_details['location']['data'] = get_terms( 'location', array( 'orderby' => 'name', 'hide_empty' => false ) );
$search_details['listing-type']['data'] = get_terms( 'listing-type', array( 'orderby' => 'name', 'hide_empty' => false ) );
return $search_details;
}