JoeHana
9/24/2013 - 11:54 AM

Reorder Search Filters

Reorder Search Filters

<?php

/**
 * Reorder Search Filters
 */

add_filter( 'wpsight_search_form_details', 'custom_search_form_details', 10 );

function custom_search_form_details($search_details) {
	
	$standard_details = wpsight_standard_details();

	$search_details['status']['position'] = 10;
	$search_details['location']['position'] = 20;
	$search_details['listing-type']['position'] = 30;
	$search_details[$standard_details['details_1']['id']]['position'] = 40;
	$search_details[$standard_details['details_2']['id']]['position'] = 50;
		
	return $search_details;
	
}