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



wp_iframe_tag_add_loading_attr › WordPress Filter Hooks

Da5.7.0
Deprecaton/a
› apply_filters( 'wp_iframe_tag_add_loading_attr', $value, $iframe, $context )
Parametri: (3)
  • () value The `loading` attribute value. Returning a falsey value will result in the attribute being omitted for the iframe.
    Richiesto: Sì
  • () iframe The HTML `iframe` tag to be filtered.
    Richiesto: Sì
  • () context Additional context about how the function was called or where the iframe tag is.
    Richiesto: Sì
Definito a:
Codex:

Filters the `loading` attribute value to add to an iframe. Default 'lazy'.

Returning `false` or an empty string will not add the attribute. Returning `true` will add the default value.




Sorgenti

$value = apply_filters( 'wp_iframe_tag_add_loading_attr', $value, $iframe, $context );