A WordPress-centric search engine for devs and theme authors



post_thumbnail_meta_box ›

Since2.9.0
Deprecatedn/a
post_thumbnail_meta_box ( $post )
Parameters:
  • (WP_Post) $post A post object.
    Required: Yes
Defined at:
Codex:

Display post thumbnail meta box.



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