Filters the default array of embed dimensions.
Parameters
$size
int[]- Indexed array of the embed width and height in pixels.
0
intThe embed width.1
intThe embed height.
$url
string- The URL that should be embedded.
Source
return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
Example migrated from Codex:
Modify the default embed dimensions by adding the filter to the
functions.php
file of a child theme.