Shows all suburbs rather than only those that have listings in listing search widget



function epl_filter_search_widget_fields_frontend($fields) {

     foreach($fields as &$field) {

        if($field['key'] == 'search_location') {

             $locations    = get_terms('location',array('hide_empty'    => false) );
            $arr = array();
            foreach($locations as $location) {
                $arr[$location->term_id] = $location->name;
            }
             $field['options']     = $arr;
             break;
         }
     }
     return $fields;
}
add_filter('epl_search_widget_fields_frontend','epl_filter_search_widget_fields_frontend');