get_attached_media

Advertisement

Summery Summery

Filters the list of media attached to the given post.

Syntax Syntax

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

Parameters Parameters

$children

Array of media attached to the given post.

$type

Mime type of the media desired.

$post

Post object.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply