Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_thumbnail_size ›

Desde4.9.0
Obsoleton/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
Parâmetros: (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
Definido em:
Codex:

Filters the post thumbnail size.





Fonte

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