W3cubDocs

/WordPress

apply_filters( 'embed_defaults', array $size, string $url )

Filters the default array of embed dimensions.

Parameters

$size

(array) Indexed array of the embed width and height in pixels.

  • (int) The embed width.
  • '1'
    (int) The embed height.

$url

(string) The URL that should be embedded.

Source

File: wp-includes/embed.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/embed_defaults