JoeHana
6/9/2014 - 8:21 PM

Custom Price Ranges for wpSight Extended Search - Status/Price Chained Selects

Custom Price Ranges for wpSight Extended Search - Status/Price Chained Selects

<?php

/**
 * Custom Price Ranges
 */

add_filter('wpsight_price_ranges', 'custom_price_ranges');

function custom_price_ranges() {
	
	$prices = array(
	
		'sale' => array(
			'min' => array(
				'100000' => '100000',
				'120000' => '120000',
				'130000' => '130000',
				'140000' => '140000',
				'150000' => '150000'
			),
			'max' => array(
				'100000' => '100000',
				'120000' => '120000',
				'130000' => '130000',
				'140000' => '140000',
				'150000' => '150000'
			)
		),
		
		'rent' => array(
			'min' => array(
				'200' => '200',
				'300' => '300',
				'400' => '400',
			),
			'max' => array(
				'200' => '200',
				'300' => '300',
				'400' => '400',
			)
		),
		
		'custom' => array(
			'min' => array(
				'1' => '1',
				'2' => '2',
				'3' => '3',
			),
			'max' => array(
				'1' => '1',
				'2' => '2',
				'3' => '3',
			)
		)
					
	);
	
	return $prices;
	
}