wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



embed_thumbnail_image_shape › WordPress Filter Hooks

Seit4.5.0
Veraltetn/v
apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id )
Parameter: (2)
  • (string) $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    Erforderlich: Ja
  • (int) $thumbnail_id Attachment ID.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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