Description
Parameters
$value string | false | null The decoding attribute value. Returning a falsey value will result in the attribute being omitted for the image.
Otherwise, it may be: 'async' , 'sync' , or 'auto' . Defaults to false. $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_decoding_attr = apply_filters( 'wp_img_tag_add_decoding_attr', isset( $optimization_attrs['decoding'] ) ? $ optimization_attrs['decoding'] : false, $image, $context );
Changelog
| |
---|---|
| |