get_attached_media_args WordPress Filter Hook
The get_attached_media_args hook is used to filter the arguments used to query for media attached to a post.
apply_filters( 'get_attached_media_args', array $args , string $type , WP_Post $post ) #
Filters arguments used to retrieve media attached to the given post.
Parameters
- $args
(array)Post query arguments.
- $type
(string)Mime type of the desired media.
- $post
(WP_Post)Post object.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |