Filters the size used to display the post thumbnail image in the ‘Featured image’ meta box.
Note: When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ image size is registered, which differs from the ‘thumbnail’ image size managed via the Settings > Media screen.
$sizestring|int[]
$thumbnail_idint
$postWP_Post
$size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_post_thumbnail_size