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

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

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