W3cubDocs

/WordPress

apply_filters( 'get_attached_media', array $children, string $type, mixed $post )

Filters the list of media attached to the given post.

Description

Parameters

$children

(array) Associative array of media attached to the given post.

$type

(string) Mime type of the media desired.

$post

(mixed) Post ID or object.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_attached_media