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

(WP_Post[]) Array of media attached to the given post.

$type

(string) Mime type of the media desired.

$post

(WP_Post) Post object.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.