wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_wp_get_loading_optimization_attributes › Les Filtres WordPress

Depuis6.4.0
Dépréciéen/a
› apply_filters( 'pre_wp_get_loading_optimization_attributes', false, $tag_name, $attr, $context )
Paramètres: (4)
  • () loading_attrs False by default, or array of loading optimization attributes to short-circuit.
    Requis: Oui
  • () tag_name The tag name.
    Requis: Oui
  • () attr Array of the attributes for the tag.
    Requis: Oui
  • () context Context for the element for which the loading optimization attribute is requested.
    Requis: Oui
Défini(e) dans:
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.




Source

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