On this page
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
$defaultbool-
Default value.
$tag_namestring-
The tag name.
$contextstring-
Additional context, like the current filter name or the function name from where this was called.
Source
File: wp-includes/media.php. View all references
return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context );
Related
Used By
| Used By | Description |
|---|---|
| wp_lazy_loading_enabled() wp-includes/media.php | Determines whether to add the |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_lazy_loading_enabled