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



embed_thumbnail_image_shape › Filtr WordPress Hooks

Od4.5.0
Przestarzałyn/a
apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id )
Parametry: (2)
  • (string) $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    Wymagane: Tak
  • (int) $thumbnail_id Attachment ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the thumbnail shape for use in the embed template.

Rectangular images are shown above the title while square images are shown next to the content.





Źródło

$shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id );