wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_thumbnail_size › Filtr WordPress Hooks

Od4.9.0
Przestarzałyn/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
Parametry: (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).
    Wymagane: Tak
  • (int) $post_id The post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the post thumbnail size.





Źródło

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