wp_embed_defaults
wp_embed_defaults ( $url = '' )
Parameters:- (string) url Optional. The URL that should be embedded. Default empty.
Returns:- (int[]) { Indexed array of the embed width and height in pixels. @type int $0 The embed width. @type int $1 The embed height. }
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Creates default array of embed parameters.The width defaults to the content width as specified by the theme. If the
theme does not specify a content width, then 500px is used.
The default height is 1.5 times the width, or 1000px, whichever is smaller.
The {@see 'embed_defaults'} filter can be used to adjust either of these values.