Filters the default array of embed dimensions.
Parameters
$sizeint[]- Indexed array of the embed width and height in pixels.
0intThe embed width.1intThe embed height.
$urlstring- 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.phpfile of a child theme.