Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/post.php | apply_filters | 1597 | /** * 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. * * @since 4.4.0 * * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). * @param int $thumbnail_id Post thumbnail attachment ID. * @param WP_Post $post The post object associated with the thumbnail. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|int[] | $size | Requested image size. Can be any registered image size name, or |
int | $thumbnail_id | Post thumbnail attachment ID. |
WP_Post | $post | The post object associated with the thumbnail. |