Function: _wp_post_thumbnail_html

_wp_post_thumbnail_html( integer $thumbnail_id, mixed $post )

Output HTML for the post thumbnail meta-box.

Parameters

Name Type(s) Default Value Description
$thumbnail_id integer null

ID of the attachment used for thumbnail

$post mixed null

The post ID or object associated with the thumbnail, defaults to global $post.

Returns

string

html

WordPress Developer Newsletter

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