Bootstrap – combine “facetwp-template” with “.row”

<?php

add_filter( 'facetwp_shortcode_html', function( $output, $atts ) {
    if ( isset( $atts['template'] ) ) {
        $output = str_replace( 'facetwp-template', 'facetwp-template row', $output );
    }
    return $output;
}, 10, 2 );