Core Function
View Source on Trac ↗ wp_img_tag_add_decoding_attr()
wp_img_tag_add_decoding_attr( mixed $image, mixed $context ) Adds `decoding` attribute to an `img` HTML tag.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $image string | The HTML `img` tag where the attribute should be added. Required |
| $context string | Additional context to pass to the filters. Required |
Return Value
(string)
Converted `img` tag with `decoding` attribute added.
Function Information
Since Version
6.1.0
Source File
wp-includes/deprecated.php
Advertisement