wordpress / latest / hooks / admin_post_thumbnail_html.html

apply_filters( 'admin_post_thumbnail_html', string $content, int $post_id, int|null $thumbnail_id )

Filters the admin post thumbnail HTML markup to return.

Parameters

$content string
Admin post thumbnail HTML markup.
$post_id int
Post ID.
$thumbnail_id int|null
Thumbnail attachment ID, or null if there isn't one.

Source

File: wp-admin/includes/post.php. View all references

return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id );

Used By

Used By Description

Changelog

Version Description
4.6.0 Added the $thumbnail_id parameter.
3.5.0 Added the $post_id parameter.
2.9.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_post_thumbnail_html