Last active
October 17, 2015 17:21
-
-
Save mgibbs189/cff1f35d8cac16890c8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment