WPDev.one
Core Function
View Source on Trac ↗

wp_get_loading_optimization_attributes()

wp_get_loading_optimization_attributes( mixed $tag_name, mixed $attr, mixed $context )

Gets loading optimization attributes.

Parameters 3 required

Name / Type Description
$tag_name
string

The tag name.

Required
$attr
array

Array of the attributes for the tag.

Required
$context
string

Context for the element for which the loading optimization attribute is requested.

Required

Return Value

(array)
Loading optimization attributes.

Function Information

Since Version
6.3.0
Source File
wp-includes/media.php
Advertisement