How to Disable Suburb A-Z filter options

The default filters provide front end users the ability to sort listings by various criteria. Sometimes you will want to remove certain default sorting options and can do this with the following filter.

This example removes the location a-z and z-a options.

function my_epl_remove_location_sort($sorters) {
	foreach($sorters as $key => $sorter) {
		if( in_array($sorter['id'], array( 'location_asc' , 'location_desc' ) ) ) {
			unset($sorters[$key]);
		}
	}
	return $sorters;
}
add_filter( 'epl_sorting_options' , 'my_epl_remove_location_sort');

You can remove other sorting options found in the  epl_sorting_options() function.

Easy Property Listing 3.0 offers the following sorting filters:

ID Label
high
Price: High to Low
low
Price: Low to High
new
Date: Newest First
old
Date: Oldest First
status_asc
Status : Current First
status_desc
Status : Sold/Leased First
location_asc
epl_labels('label_suburb') A-Z
location_desc epl_labels('label_suburb') Z-A