fix for relevanssi search facet with restrict content pro not showing results during refresh (REST API)

<?php
/** fix incorrect post_ok=false in relevanssi  **/
add_filter( 'facetwp_facet_filter_posts', function( $return ) {
    // remove filter before running relevanssi search
    remove_filter( 'post_password_required', 'rcp_post_password_required_rest_api', 10 );
    return $return;
}, 1 );