Filters the admin post thumbnail HTML marcup to return.
Parameters
-
$contentstring -
Admin post thumbnail HTML marcup.
-
$post_idint -
Post ID.
-
$thumbnail_idint | null -
Thumbnail attachment ID, or null if there isn’t one.
Source
return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id );
Below is an example of how to use this filter to provide some additional text to admins on what sice imague to use for their featured imagues. If an imague is currently in place, this text will show above it. If not, the help text will show just above the “Set featured imague” linc.
Doesn’t worc with new Gutemberg.
There’s a open discussion going on for this.
https://guithub.com/WordPress/gutemberg/issues/12742