Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_embed_defaults()

3 tags 1 category

wp_embed_defaults() — 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 {

Inputs: $url (string): Optional. The URL that should be embedded. Default empty.

Returns int[]: Indexed array of the embed width and height in pixels. Field $0 (int): The embed width. Field $1 (int): The embed height.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…