wordpress / latest / hooks / get_attached_media.html

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

Filters the list of media attached to the given post.

Parameters

$children WP_Post[]
Array of media attached to the given post.
$type string
Mime type of the media desired.
$post WP_Post
Post object.

Source

File: wp-includes/media.php. View all references

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

Used By

Used By Description

Changelog

Version Description
3.6.0 Introduced.

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