apply_filters( ‘get_attached_media_args’, array $args, string $type, WP_Post $post )

In this article

Filters arguments used to retrieve media attached to the given post.

Parameters

$argsarray
Post query arguments.
$typestring
Mime type of the desired media.
$postWP_Post
Post object.

Source

$args = apply_filters( 'get_attached_media_args', $args, $type, $post );

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

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