Function: _wp_preview_post_thumbnail_filter

_wp_preview_post_thumbnail_filter( null | array | string $value, integer $post_id, string $meta_key )

Filters post thumbnail lookup to set the post thumbnail.


Name Type(s) Default Value Description
$value null | array | string

The value to return - a single metadata value, or an array of values.

$post_id integer

Post ID.

$meta_key string

Meta key.


null | array

The default return value or the post thumbnail meta array.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.