_wp_post_thumbnail_html
_wp_post_thumbnail_html ( $thumbnail_id = null, $post = null )
Parameters:- (int|null) thumbnail_id Optional. Thumbnail attachment ID. Default null.
- (int|WP_Post|null) post Optional. The post ID or object associated with the thumbnail. Defaults to global $post.
Returns:- (string) The post thumbnail HTML.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Returns HTML for the post thumbnail meta box.