get_attached_media_args filter-hook . WP 3.6.0
Filters arguments used to retrieve media attached to the given post.
Usage
add_filter( 'get_attached_media_args', 'filter_function_name_3322', 10, 3 ); function filter_function_name_3322( $args, $type, $post ){ // filter... return $args; }
- $args(array)
- Post query arguments.
- $type(string)
- Mime type of the desired media.
- $post(WP_Post)
- Post object.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
get_attached_media_args
wp-includes/media.php 4481
$args = apply_filters( 'get_attached_media_args', $args, $type, $post );