wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_wp_get_loading_optimization_attributes › Hooks de Filtros WordPress

Desde6.4.0
Obsoleton/a
› apply_filters( 'pre_wp_get_loading_optimization_attributes', false, $tag_name, $attr, $context )
Parâmetros: (4)
  • () loading_attrs False by default, or array of loading optimization attributes to short-circuit.
    Required: Yes
  • () tag_name The tag name.
    Required: Yes
  • () attr Array of the attributes for the tag.
    Required: Yes
  • () context Context for the element for which the loading optimization attribute is requested.
    Required: Yes
Definido em:
Codex:

Filters whether to short-circuit loading optimization attributes.

Returning an array from the filter will effectively short-circuit the loading of optimization attributes, returning that value instead.




Fonte

$loading_attrs = apply_filters( 'pre_wp_get_loading_optimization_attributes', false, $tag_name, $attr, $context );