<?php
/** partial support, facet pager does not work, generateblock pager does work
** but does not does not use ajax to update page
** add "facetwp-template" class to query https://d.pr/i/1R8Nds
** and the snippet below
**/
add_filter('generateblocks_query_wp_query_args', function ($args, $attributes, $block, $current) {
if ("facetwp-template" == $attributes['className']) {
$args['facetwp'] = true;
}
return $args;
}, 10, 4);