This file contains hidden or 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
function facet_availability_logic( $return, $params ) { | |
// get facet in question | |
$facet = $params['facet']; | |
// assign values to $selected_values var | |
$selected_values = $params['selected_values']; | |
// if the facet's NAME is 'date' | |
// (this can be changed to the name of your facet you want to override) | |
if ( 'dates' == $facet['name'] ) { | |
// assign variables to first (start date) and second (end date) queries passed |