epl_listing_search_price_slider_global Price Slide Range Filter

@since Easy Property Listings 3.3

This filter allows you to alter the price range slider of the any tab.

// Any search tab which will include rental listings if the range is low enough.
function my_epl_listing_search_price_sale_slider_range() {
	
	// The numbers are ( 0 (minimum) , 40000000 ( maximum ), 100000 (step) )
	$range = range(0,40000000,100000);
	
	// Currency formatting
	$price_array = array_combine($range,array_map('epl_currency_formatted_amount',$range) );
	
	return $price_array;
}
// Any Tab filter
add_filter( 'epl_listing_search_price_slider_global' , 'my_epl_listing_search_price_sale_slider_range' );


epl_listing_search_price_slider_sale

This filter alters the range of any listings that are for sale, IE the Buy, Land, Commercial, Rural, Business listing type tabs.

// For Sale listing type
function my_epl_listing_search_price_sale_slider_range() {
	
	// The numbers are ( 0 (minimum) , 40000000 ( maximum ), 100000 (step) )
	$range = range(0,40000000,100000);
	
	// Currency formatting
	$price_array = array_combine($range,array_map('epl_currency_formatted_amount',$range) );
	
	return $price_array;
}
// For Sale listing type
add_filter( 'epl_listing_search_price_slider_sale' , 'my_epl_listing_search_price_sale_slider_range' );

epl_listing_search_price_slider_rental

This filter alters the range of any listings that are for rent, IE the For Rent / Rental type tabs.

// Rental type listings tab range
function my_epl_listing_search_rental_sale_slider_range() {
	
	// The numbers are ( 0 (minimum) , 4000 ( maximum ), 50 (step) )
	$range = range(0,4000,50);
	
	// Currency formatting
	$price_array = array_combine($range,array_map('epl_currency_formatted_amount',$range) );
	
	return $price_array;
}
add_filter( 'epl_listing_search_price_slider_rental' , 'my_epl_listing_search_rental_sale_slider_range' );