Forums › Forums › Search & Filter Pro › sf_edit_query_args filter – not working after infinity scroll
- This topic has 25 replies, 3 voices, and was last updated 8 years, 4 months ago by
Anonymous.
-
Anonymous(Private) June 26, 2018 at 3:42 pm #181280
When using the sf_edit_query_args filter with WooCommerce the following problem is occurring:
At page load the filter is working fine. When scrolling to the ‘next page’ with infinite scroll, all the filter options are ‘forgotten’.
This is the code we are using:
function filter_products( $query_args, $sfid ) { $query_args['tax_query'] = [ 'relation' => 'AND', [ 'taxonomy' => 'pa_merk', 'field' => 'slug', 'terms' => array( 'antwrp' ), ],[ 'taxonomy' => 'pa_kleur', 'field' => 'slug', 'terms' => array( '202-medium-grey-chine' ), ] ]; return $query_args; } add_filter( 'sf_edit_query_args', 'filter_products', 20, 2 );Can S&F be forced to keep using this data?
Thanks! -
AuthorPosts