wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_img_tag_add_loading_attr › WordPress Filter Hooks
Since5.5.0
Deprecatedn/a
› apply_filters( 'wp_img_tag_add_loading_attr', 'lazy', $image, $context )
Parameters: (3) |
|
Defined at: |
|
Codex: |
Filters the `loading` attribute value to add to an image. Default `lazy`.
Returning false
or an empty string will not add the attribute.
Returning true
will add the default value.
Related Functions: wp_img_tag_add_loading_attr, wp_iframe_tag_add_loading_attr, wp_img_tag_add_width_and_height_attr, wp_img_tag_add_srcset_and_sizes_attr, wp_ajax_add_link_category, wp_script_add_data