Skip to content

Instantly share code, notes, and snippets.

@elimn
Created December 6, 2014 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elimn/cf1826b4c91a43eb18ac to your computer and use it in GitHub Desktop.
Save elimn/cf1826b4c91a43eb18ac to your computer and use it in GitHub Desktop.
MT | TEC | Set embedded map height
<?php
add_filter( 'tribe_get_option', 'tribe_adjust_embedded_map_height', 10, 2 );
function tribe_adjust_embedded_map_height( $value, $property ) {
if ( 'embedGoogleMapsHeight' !== $property ) return $value;
return '350px';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment