wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_thumbnail_size › Les Filtres WordPress

Depuis4.9.0
Dépréciéen/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
Paramètres: (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).
    Requis: Oui
  • (int) $post_id The post ID.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the post thumbnail size.





Source

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