WPDev.one
Core Function
View Source on Trac ↗

wp_img_tag_add_loading_optimization_attrs()

wp_img_tag_add_loading_optimization_attrs( mixed $image, mixed $context )

Adds optimization attributes 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 optimization attributes added.

Function Information

Since Version
6.3.0
Source File
wp-includes/media.php
Advertisement