Last active
October 11, 2015 21:03
-
-
Save rmorse/28be357eb2d627848fca to your computer and use it in GitHub Desktop.
Search & Filter Pro - Get the Active Search Form
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 | |
//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