wpseek.com
WordPress开发者和主题制作者的搜索引擎



embed_defaults › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'embed_defaults', compact( 'width', 'height' )
参数: (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
定义在:
文档:

Filters the default array of embed dimensions.





源码

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