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
Changelog
Version | Description |
---|---|
4.6.0 | Added the $thumbnail_id parameter. |
3.5.0 | Added the $post_id parameter. |
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Below is an example of how to use this filter to provide some additional text to admins on what size image to use for their featured images. If an image is currently in place, this text will show above it. If not, the help text will show just above the “Set featured image” link.