post_thumbnail_meta_box( WP_Post $post )

In this article

Displays post thumbnail meta box.

Parameters

$postWP_Postrequired
Current post object.

Source

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 );
}

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.