Last active
September 22, 2015 18:03
-
-
Save rmorse/69c690beffdb8ad0b149 to your computer and use it in GitHub Desktop.
Search & Filter Pro - Active Query - Get array of objects contain all filter data
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(); | |
var_dump($sf_current_query->get_array()); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment