Function: get_media_items

get_media_items( integer $post_id, array $errors )

Retrieve HTML for media items of post gallery.

The HTML markup retrieved will be created for the progress of SWF Upload component. Will also create link for showing and hiding the form to modify the image attachment.


Name Type(s) Default Value Description
$post_id integer

Optional. Post ID.

$errors array

Errors for attachment, if any.



WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.