Filter hook 'wp_lazy_loading_enabled'

in WP Core File wp-includes/media.php at line 1818

Description

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

Occurrences

Filename Line Number
wp-includes/media.php 1818

Parameters

Type Name Description
bool $default Default value.
string $tag_name The tag name.
string $context Additional context, like the current filter name or the function name from where this was called.

PHP Doc

/**
	 * Filters whether to add the `loading` attribute to the specified tag in the specified context.
	 *
	 * @since 5.5.0
	 *
	 * @param bool   $default  Default value.
	 * @param string $tag_name The tag name.
	 * @param string $context  Additional context, like the current filter name
	 *                         or the function name from where this was called.
	 */