Created
December 6, 2014 02:50
-
-
Save elimn/cf1826b4c91a43eb18ac to your computer and use it in GitHub Desktop.
MT | TEC | Set embedded map height
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( '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