WordPress at Your Fingertips
filter is not described

wp_lazy_loading_enabled filter-hook . WP 5.5.0

Filters whether to add the loading attribute to the specified tag in the specified context.


add_filter( 'wp_lazy_loading_enabled', 'filter_function_name_625', 10, 3 );
function filter_function_name_625( $default, $tag_name, $context ){
	// filter...

	return $default;
Default value.
The tag name.
Additional context, like the current filter name or the function name from where this was called.


Since 5.5.0 Introduced.

Where the hook is called

wp-includes/media.php 1746
return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context );

Where in WP core the hook is used WordPress

Usage not found.