Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Search & Filter Pro - Active Query - Check to see if a user has selected any filters
<?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
You can’t perform that action at this time.