post_thumbnail_meta_box( WP_Post $post )

Display post thumbnail meta box.


Parameters Parameters

$post

(WP_Post) (Required) A post object.


Top ↑

Source Source

File: wp-admin/includes/meta-boxes.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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