daily pastebin goal
34%
SHARE
TWEET

Strip code to include Google Maps

BakerMan Dec 6th, 2013 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_get_embedded_map', 'strip_gmaps_inclusion' );
  2.  
  3. function strip_gmaps_inclusion( $html ) {
  4.         $to_remove = '<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>';
  5.         return str_replace( $to_remove, '', $html );
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top