Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_image_tag_class ›

Desde2.6.0
Obsoleton/a
apply_filters( 'get_image_tag_class', $class, $id, $align, $size )
Parâmetros: (4)
  • (string) $class CSS class name or space-separated list of classes.
    Required: Yes
  • (int) $id Attachment ID.
    Required: Yes
  • (string) $align Part of the class name for aligning the image.
    Required: Yes
  • (string|array) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    Required: Yes
Definido em:
Codex:

Filters the value of the attachment's image tag class attribute.





Fonte

$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );