Created
January 20, 2016 08:20
-
-
Save rmorse/e76fea68c9aab874155a to your computer and use it in GitHub Desktop.
Search & Filter Pro - Active Query - Check to see if a user has selected any filters
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 | |
//Get an array of objects containing data for the current search/filter | |
//replace `1526` with the ID of your search form | |
global $searchandfilter; | |
$sf_current_query = $searchandfilter->get(1526)->current_query(); | |
echo $sf_current_query->is_filtered(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment