WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_attached_media

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 4797 /**
* Filters the list of media attached to the given post.
*
* @since 3.6.0
*
* @param WP_Post[] $children Array of media attached to the given post.
* @param string $type Mime type of the media desired.
* @param WP_Post $post Post object.
*/

Hook Parameters

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