Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_thumbnail_meta_box ›

Desde2.9.0
Obsoleton/a
post_thumbnail_meta_box ( $post )
Parâmetros:
  • (WP_Post) $post A post object.
    Required: Yes
Definido em:
Codex:

Display post thumbnail meta box.



Fonte

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