Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Search & Filter Pro - Get the Active Search Form
<?php
//check if a form is active
global $searchandfilter;
if($searchandfilter->active_sfid())
{
//a valid search form exists
}
else
{
//returns false if none is found
}
//check if a form is active
global $searchandfilter;
if($searchandfilter->active_sfid()==123)
{
//the active form has an ID of 123
}
?>
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.