Skip to content

Instantly share code, notes, and snippets.

@rmorse
Last active October 11, 2015 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmorse/28be357eb2d627848fca to your computer and use it in GitHub Desktop.
Save rmorse/28be357eb2d627848fca to your computer and use it in GitHub Desktop.
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