facetwp remove google maps

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/** remove facet’s copy of google maps when another plugin or theme is already loading it **/
add_filter( ‘facetwp_assets’, function( $assets ) {
unset( $assets[‘gmaps’] );
return $assets;
});
{{/gist}}