facetwp is_home post type

<?php

/** makes sure the is_home query defaults to post rather than any post_type **/
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
    if ( is_home() && $is_main_query && empty( $query->get('post_type') ) ) {
        $query->set( 'post_type', 'post' );
    }
    return $is_main_query;
}, 10, 2);