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



get_attached_media › WordPress过滤钩子

Since3.6.0
已弃用n/a
› apply_filters( 'get_attached_media', $children, $type, $post )
参数: (3)
  • () children Array of media attached to the given post.
    Required: Yes
  • () type Mime type of the media desired.
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

Filters the list of media attached to the given post.





源码

return (array) apply_filters( 'get_attached_media', $children, $type, $post );