A WordPress-centric search engine for devs and theme authors



get_attached_media ›

Since3.6.0
Deprecatedn/a
apply_filters( 'get_attached_media', $children, $type, $post )
Parameters: (3)
  • (array) $children Associative array of media attached to the given post.
    Required: Yes
  • (string) $type Mime type of the media desired.
    Required: Yes
  • (mixed) $post Post ID or object.
    Required: Yes
Defined at:
Codex:

Filters the list of media attached to the given post.





Source

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