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.
6207*6208* @since 5.9.06209* @since 6.3.0 The default threshold was changed from 1 to 3.6210*6211* @param int$omit_threshold The number of media elements where the `loading` attribute will not be added.Default3.6212*/6213$omit_threshold=apply_filters('wp_omit_loading_attr_threshold',3);6214}62156216return$omit_threshold;6217}62186219/**
History
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.