_wp_post_thumbnail_html


_wp_post_thumbnail_html ( $thumbnail_id = null, $post = null )

Parameters:
  • (int|null) thumbnail_id Optional. Thumbnail attachment ID. Default null.
  • (int|WP_Post|null) post Optional. The post ID or object associated with the thumbnail. Defaults to global $post.
Returns:
  • (string) The post thumbnail HTML.
Defined at:

Description

Returns HTML for the post thumbnail meta box.

Related Functions

wp_ajax_get_post_thumbnail_html, the_post_thumbnail_url, the_post_thumbnail, set_post_thumbnail, has_post_thumbnail

Top Google Results

User discussions

wpseek mobile