Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.