apply_filters( ‘get_attached_media’, WP_Post[] $children, string $type, WP_Post $post )

In this article

Filters the list of media attached to the given post.

Parameters

$childrenWP_Post[]
Array of media attached to the given post.
$typestring
Mime type of the media desired.
$postWP_Post
Post object.

Source

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

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.