Skip to content

Instantly share code, notes, and snippets.

@rmorse
Last active September 22, 2015 18: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/69c690beffdb8ad0b149 to your computer and use it in GitHub Desktop.
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
<?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