On this page
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
$argsarray-
Post query arguments.
$typestring-
Mime type of the desired media.
$postWP_Post-
Post object.
Source
File: wp-includes/media.php. View all references
$args = apply_filters( 'get_attached_media_args', $args, $type, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_attached_media() wp-includes/media.php | Retrieves media attached to the passed post. |
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_attached_media_args