wpseek.com
A WordPress-centric search engine for devs and theme authors



post_thumbnail_size › WordPress Filter Hooks

Since4.9.0
Deprecatedn/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
Parameters: (2)
  • (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).
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
Defined at:
Codex:

Filters the post thumbnail size.





Source

$size = apply_filters( 'post_thumbnail_size', $size, $post->ID );