wp_maybe_add_fetchpriority_high_attr
- %1$s is private and should not be used in themes or plugins directly.
wp_maybe_add_fetchpriority_high_attr ( $loading_attrs, $tag_name, $attr )
Access:Parameters:- (array) loading_attrs Array of the loading optimization attributes for the element.
- (string) tag_name The tag name.
- (array) attr Array of the attributes for the element.
Returns:- (array) Updated loading optimization attributes for the element.
Defined at: - Introduced in WordPress: 6.3.0
- Deprecated in WordPress: —
Description
Determines whether to add `fetchpriority='high'` to loading attributes.