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



embed_thumbnail_image_shape › Les Filtres WordPress

Depuis4.5.0
Dépréciéen/a
apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id )
Paramètres: (2)
  • (string) $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    Requis: Oui
  • (int) $thumbnail_id Attachment ID.
    Requis: Oui
Défini(e) dans:
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.





Source

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