WPDev.one
Core Function
View Source on Trac ↗

_wp_preview_post_thumbnail_filter()

_wp_preview_post_thumbnail_filter( mixed $value, mixed $post_id, mixed $meta_key )

Filters post thumbnail lookup to set the post thumbnail.

Parameters 3 required

Name / Type Description
(null

| array | string) $value The value to return - a single metadata value, or an array of values.

Required
$post_id
int

Post ID.

Required
$meta_key
string

Meta key.

Required

Return Value

((null)
| array) The default return value or the post thumbnail meta array.

Function Information

Since Version
4.6.0
Source File
wp-includes/revision.php
Advertisement