post_thumbnail_meta_box

Display post thumbnail meta box.

Description

post_thumbnail_meta_box( (WP_Post) $post ); 

Parameters (1)

0. $post (WP_Post)
A post object.

Usage

  1. if ( !function_exists( 'post_thumbnail_meta_box' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/meta-boxes.php'; 
  3.  
  4. // A post object. 
  5. $post = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = post_thumbnail_meta_box($post); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/meta-boxes.php  
  1. function post_thumbnail_meta_box( $post ) { 
  2. $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true ); 
  3. echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID );