Function: get_media_item

get_media_item( integer $attachment_id, string | array $args )

Retrieve HTML form for modifying the image attachment.

Parameters

Name Type(s) Default Value Description
$attachment_id integer

Attachment ID for modification.

$args string | array null

Optional. Override defaults.

Returns

string

HTML form for attachment.

WordPress Developer Newsletter

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