Core Function
View Source on Trac ↗ wp_omit_loading_attr_threshold()
wp_omit_loading_attr_threshold( mixed $force = false ) Gets the threshold for how many of the first content media elements to not lazy-load.
Parameters 1 required
| Name / Type | Description |
|---|---|
| bool | $force Optional. If set to true, the filter will be (re-)applied even if it already has been before. Default false. Required |
Return Value
(int)
The number of content media elements to not lazy-load.
Function Information
Since Version
5.9.0
Source File
wp-includes/media.php
Advertisement