WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_image_tag_class

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 394 /**
* Filters the value of the attachment's image tag class attribute.
*
* @since 2.6.0
*
* @param string $class CSS class name or space-separated list of classes.
* @param int $id Attachment ID.
* @param string $align Part of the class name for aligning the image.
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
*/

Hook Parameters

Parameter Type Name Description
string $class CSS class name or space-separated list of classes.
int $id Attachment ID.
string $align Part of the class name for aligning the image.
string|int[] $size Requested image size. Can be any registered image size name, or