wp_embed_defaults ( $url = '' )

  • (string) $url Optional. The URL that should be embedded. Default empty.
  • (array) Default embed parameters.
Defined at:


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.

Related Functions

wp_oembed_get, wp_get_widget_defaults, wp_embed_handler_audio, wp_install_defaults, wp_filter_oembed_result

Top Google Results

User discussions

wpseek mobile