wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



embed_thumbnail_image_shape › WordPress Filter Hooks

Da4.5.0
Deprecaton/a
apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id )
Parametri: (2)
  • (string) $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    Richiesto:
  • (int) $thumbnail_id Attachment ID.
    Richiesto:
Definito a:
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.





Sorgenti

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