Core Function
View Source on Trac ↗ _wp_post_thumbnail_html()
_wp_post_thumbnail_html( mixed $thumbnail_id = null, mixed $post = null ) Returns HTML for the post thumbnail meta box.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | null) $thumbnail_id Optional. Thumbnail attachment ID. Default null. Required |
| mixed | (int | WP_Post | null) $post Optional. The post ID or object associated with the thumbnail. Defaults to global $post. Required |
Return Value
(string)
The post thumbnail HTML.
Function Information
Since Version
2.9.0
Source File
wp-admin/includes/post.php
Advertisement