wpseek.com
A WordPress-centric search engine for devs and theme authors



embed_defaults › WordPress Filter Hooks

Since2.9.0
Deprecatedn/a
apply_filters( 'embed_defaults', compact( 'width', 'height' )
Parameters: (2)
  • (int[]) $size { Indexed array of the embed width and height in pixels. @type int $0 The embed width. @type int $1 The embed height. }
    Required: Yes
  • (string) $url The URL that should be embedded.
    Required: Yes
Defined at:
Codex:

Filters the default array of embed dimensions.





Source

return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );