get_media_item_args filter-hookWP 3.1.0

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

Usage

add_filter( 'get_media_item_args', 'wp_kama_get_media_item_args_filter' );

/**
 * Function for `get_media_item_args` filter-hook.
 * 
 * @param array $parsed_args An array of arguments.
 *
 * @return array
 */
function wp_kama_get_media_item_args_filter( $parsed_args ){

	// filter...
	return $parsed_args;
}
$parsed_args(array)
An array of arguments.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

get_media_item()
get_media_item_args
get_compat_media_markup()
get_media_item_args
wp-admin/includes/media.php 1601
$parsed_args = apply_filters( 'get_media_item_args', $parsed_args );
wp-admin/includes/media.php 1870
$args = apply_filters( 'get_media_item_args', $args );

Where the hook is used in WordPress

Usage not found.