epl_listing_search_price_sale : Search Widget Filter
This filter allows you to modify the sale price values in the search widget. Add the following code to your theme's functions file or a custom plugin.
function my_epl_listing_search_price_sale_range() {
// Check to make sure Easy Property Listings is active
// so that the epl_currency_formatted_amount function works
if ( ! class_exists( 'Easy_Property_Listings' ) ) {
return;
}
$prices_arr = array(
1000 => epl_currency_formatted_amount(1000),
2000 => epl_currency_formatted_amount(2000),
3000 => epl_currency_formatted_amount(3000),
4000 => epl_currency_formatted_amount(4000),
5000 => epl_currency_formatted_amount(5000),
6000 => epl_currency_formatted_amount(6000),
7000 => epl_currency_formatted_amount(7000),
8000 => epl_currency_formatted_amount(8000),
9000 => epl_currency_formatted_amount(9000),
10000 => epl_currency_formatted_amount(10000),
15000 => epl_currency_formatted_amount(15000),
20000 => epl_currency_formatted_amount(20000),
25000 => epl_currency_formatted_amount(25000),
30000 => epl_currency_formatted_amount(30000),
35000 => epl_currency_formatted_amount(35000),
40000 => epl_currency_formatted_amount(40000),
);
return $prices_arr;
}
add_filter( 'epl_listing_search_price_sale' , 'my_epl_listing_search_price_sale_range' );
Results of sale price filter in EPL - Search widget
