GenerateBlocks query loop block

<?php
/** use this snippet with facetwp-template set as a custom class on the 
 ** query loop block for facet compatiblity
 **/

add_filter( 'generateblocks_query_loop_args', function( $query_args, $attributes ) {
    if ( ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'facetwp-template' ) !== false ) {
        $query_args['facetwp'] = true;
    }
    return $query_args;
}, 10, 2 );