Created
August 16, 2016 12:49
-
-
Save mgibbs189/7aa32ae28e6e9f64a6ff6f2345e1f9e1 to your computer and use it in GitHub Desktop.
FacetWP - don't load event-manager.js for front end ACF form pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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