Filters the threshold for how many of the first content media elements to not lazy-load.
Description
For these first content media elements, the loading attribute will be omitted. By default, this is the case for only the very first content media element.
Parameters
$omit_thresholdint
The number of media elements where the loading attribute will not be added. Default 3.
6296*6297* @since 5.9.06298* @since 6.3.0 The default threshold was changed from 1 to 3.6299*6300* @param int$omit_threshold The number of media elements where the `loading` attribute will not be added.Default3.6301*/6302$omit_threshold=apply_filters('wp_omit_loading_attr_threshold',3);6303}63046305return$omit_threshold;6306}63076308/**
History
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.