Description
Parameters
$value string | bool The loading attribute value. Returning a falsey value will result in the attribute being omitted for the image. $image string The HTML img tag to be filtered. $context string Additional context about how the function was called or where the img tag is.
Source
$filtered_loading_attr = apply_filters( 'wp_img_tag_add_loading_attr', isset( $optimization_attrs['loading'] ) ? $ optimization_attrs['loading'] : false, $image, $context );
Changelog
| |
---|---|
| |
User Contributed Notes
-
Skip to note 2 content You must log in to vote on the helpfulness of this note Vote results for this note: zero You must log in to vote on the helpfulness of this note