facetwp ignore sticky posts in blog archive

<?php 
// For more info and options to ignore or use sticky posts:
// https://facetwp.com/how-to-use-sticky-posts-with-facetwp/

add_filter( 'pre_get_posts', function( $query ) {
    if ( $query->is_main_query() && is_home() ) {
        $query->set( 'ignore_sticky_posts', true );
    }
});