Disable WP 6.9 buffer to fix FacetWP JSON error in FacetWP 4.4.1 and earlier

<?php
/**
 ** Disables new template enhancement buffer in WP 6.9 during FacetWP's AJAX refresh;
 ** To disable WP's buffer completely, you can use:
 ** add_filter( 'wp_should_output_buffer_template_for_enhancement', '__return_false' );
 ** Important: this is only needed in FacetWP versions *older* than v4.5: the fix is included in v4.5+.
 **/
add_filter( 'wp_should_output_buffer_template_for_enhancement', function( $should ) {
  if ( function_exists( 'FWP' ) && FWP()->request && FWP()->request->is_refresh ) {
    return false;
  }
  return $should;
} );