WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get media items

Contents

Description

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.

Usage

<?php get_media_items$post_id$errors ); ?>

Parameters

$post_id
(int) (required) Optional. Post ID.
Default: None
$errors
(array) (required) Errors for attachment, if any.
Default: None

Return Values

(string) 

Change Log

Since: 2.5

Source File

get_media_items() is located in wp-admin/includes/media.php