FacetWP – don’t load event-manager.js for front end ACF form pages

<?php

add_filter( 'facetwp_assets', function( $assets ) {
    if ( false !== strpos( FWP()->helper->get_uri(), 'add-listing' ) ) {
        unset( $assets['event-manager.js'] );
    }
    return $assets;
});