Filter hook 'get_attached_media_args'

in WP Core File wp-includes/media.php at line 4997

Description

Filters arguments used to retrieve media attached to the given post.

Occurrences

Filename Line Number
wp-includes/media.php 4997

Parameters

Type Name Description
array $args Post query arguments.
string $type Mime type of the desired media.
WP_Post $post Post object.

PHP Doc

/**
	 * Filters arguments used to retrieve media attached to the given post.
	 *
	 * @since 3.6.0
	 *
	 * @param array   $args Post query arguments.
	 * @param string  $type Mime type of the desired media.
	 * @param WP_Post $post Post object.
	 */