BakerMan

Strip code to include Google Maps

Dec 6th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment