get_image_tag_class

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'get_image_tag_class', string $class, int $id, string $align, string|array $size )

Parameters Parameters

$class

(string) CSS class name or space-separated list of classes.

$id

(int) Attachment ID.

$align

(string) Part of the class name for aligning the image.

$size

(string|array) Size of image. Image size or array of width and height values (in that order). Default 'medium'.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.