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.
6221*6222* @since 5.9.06223* @since 6.3.0 The default threshold was changed from 1 to 3.6224*6225* @param int$omit_threshold The number of media elements where the `loading` attribute will not be added.Default3.6226*/6227$omit_threshold=apply_filters('wp_omit_loading_attr_threshold',3);6228}62296230return$omit_threshold;6231}62326233/**
History
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.