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
if ( empty( $loading_val ) && $loading_attrs_enabled ) { /** * Filters the `loading` attribute value to add to an image. Default `lazy`. * * Returning `false` or an empty string will not add the attribute.
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