On this page
apply_filters( 'admin_post_thumbnail_size', string|int[] $size, int $thumbnail_id, WP_Post $post )
Filters the size used to display the post thumbnail image in the ‘Featured image’ meta box.
Description
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.
Parameters
$sizestring|int[]-
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
$thumbnail_idint-
Post thumbnail attachment ID.
$postWP_Post-
The post object associated with the thumbnail.
Source
File: wp-admin/includes/post.php. View all references
$size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post );
Related
Used By
| Used By | Description |
|---|---|
| _wp_post_thumbnail_html() wp-admin/includes/post.php | Returns HTML for the post thumbnail meta box. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_post_thumbnail_size