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



media_embedded_in_content_allowed_types ›

Since4.2.0
已弃用n/a
apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' )
参数:
  • (array) $allowed_media_types An array of allowed media types. Default media types are 'audio', 'video', 'object', 'embed', and 'iframe'.
    Required: Yes
定义在:
文档:

Filters the embedded media types that are allowed to be returned from the content blob.





源码

$allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );