Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.