Created
October 28, 2015 23:44
-
-
Save davidperezgar/a86e49f989c56bb1efee to your computer and use it in GitHub Desktop.
Oembed dimensions defaults in Wordpress
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
add_filter('embed_defaults','themename_embed_defaults'); | |
function themename_embed_defaults($defaults) { | |
$defaults['width']=123; | |
$defaults['height']=123; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment