post_thumbnail_meta_box()WP 2.9.0

Displays post thumbnail meta box.

No Hooks.

Return

null. Nothing (null).

Usage

post_thumbnail_meta_box( $post );
$post(WP_Post) (required)
Current post object.

Changelog

Since 2.9.0 Introduced.

post_thumbnail_meta_box() code WP 6.6

function post_thumbnail_meta_box( $post ) {
	$thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
	echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID );
}