Title: get_media_item_args
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘get_media_item_args’, array $parsed_args )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#wp--skip-link--target)

Filters the arguments used to retrieve an image for the edit image form.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#see-also)󠁿

 * get_media_item

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#parameters)󠁿

 `$parsed_args`array

An array of arguments.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#source)󠁿

    ```php
    $parsed_args = apply_filters( 'get_media_item_args', $parsed_args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/media.php#L1635)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/media.php#L1635-L1635)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#related)󠁿

| Used by | Description | 
| [get_media_item()](https://developer.wordpress.org/reference/functions/get_media_item/)`wp-admin/includes/media.php` |

Retrieves HTML form for modifying the image attachment.

  | 
| [get_compat_media_markup()](https://developer.wordpress.org/reference/functions/get_compat_media_markup/)`wp-admin/includes/media.php` |

Retrieves the media markup for an attachment.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/get_media_item_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_media_item_args%2F)
before being able to contribute a note or feedback.