A WordPress-centric search engine for devs and theme authors



post_thumbnail_size ›

Since4.9.0
Deprecatedn/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
Parameters: (2)
  • (string|array) $size The post thumbnail size. Image size or array of width and height values (in that order). Default 'post-thumbnail'.
    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 );