A WordPress-centric search engine for devs and theme authors



embed_defaults ›

Since2.9.0
Deprecatedn/a
apply_filters( 'embed_defaults', compact( 'width', 'height' )
Parameters: (2)
  • (int[]) $size An array of embed width and height values in pixels (in that order).
    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 );