Core Function
View Source on Trac ↗ get_media_items()
get_media_items( mixed $post_id, mixed $errors ) Retrieves HTML for media items of post gallery.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_id int | Post ID. Required |
| $errors array | Errors for attachment, if any. Required |
Return Value
(string)
HTML content for media items of post gallery.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/media.php
Advertisement