post_thumbnail_meta_box

Advertisement

Summery Summery

Display post thumbnail meta box.

Syntax Syntax

post_thumbnail_meta_box( WP_Post $post )

Parameters Parameters

$post

(Required) A post object.

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply