Core Function
View Source on Trac ↗ wp_maybe_add_fetchpriority_high_attr()
wp_maybe_add_fetchpriority_high_attr( mixed $loading_attrs, mixed $tag_name, mixed $attr ) Determines whether to add `fetchpriority='high'` to loading attributes.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $loading_attrs array | Array of the loading optimization attributes for the element. Required |
| $tag_name string | The tag name. Required |
| $attr array | Array of the attributes for the element. Required |
Return Value
(array)
Updated loading optimization attributes for the element.
Function Information
Since Version
6.3.0
Source File
wp-includes/media.php
Advertisement