mgibbs189

{{gist file=”test.php” lang=”php”}}
<?php

function my_facetwp_sort_options( $options, $params ) {
if ( ‘buy_sell_grid’ == $params[‘template_name’] ) {
unset( $options[‘distance’] );
}
return $options;
}
add_filter( ‘facetwp_sort_options’, ‘my_facetwp_sort_options’, 10, 2 );
{{/gist}}