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.

Top ↑

Source

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

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


Top ↑

Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes

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