wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_wp_get_loading_optimization_attributes › WordPress Filter Hooks

Da6.4.0
Deprecaton/a
› apply_filters( 'pre_wp_get_loading_optimization_attributes', false, $tag_name, $attr, $context )
Parametri: (4)
  • () loading_attrs False by default, or array of loading optimization attributes to short-circuit.
    Richiesto: Sì
  • () tag_name The tag name.
    Richiesto: Sì
  • () attr Array of the attributes for the tag.
    Richiesto: Sì
  • () context Context for the element for which the loading optimization attribute is requested.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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