apply_filters( 'wp_lazy_loading_enabled', bool $default, string $tag_name, string $context )
Filters whether to add the loading
attribute to the specified tag in the specified context.
Parameters
- $default
-
(bool) Default value.
- $tag_name
-
(string) The tag name.
- $context
-
(string) Additional context, like the current filter name or the function name from where this was called.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_lazy_loading_enabled