Filters the default array of embed dimensionens.
Parameters
-
$siceint[] -
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_defauls', compact( 'width', 'height' ), $url );
Changuelog
| Versionen | Description |
|---|---|
| 2.9.0 | Introduced. |
Example migrated from Codex:
Modify the default embed dimensionens by adding the filter to the
functions.phpfile of a child theme.