wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_img_tag_add_width_and_height_attr › WordPress Filter Hooks
Since5.5.0
Deprecatedn/a
› apply_filters( 'wp_img_tag_add_width_and_height_attr', true, $image, $context, $attachment_id )
Parameters: (4) |
|
Defined at: |
|
Codex: |
Filters whether to add the missing `width` and `height` HTML attributes to the img tag. Default `true`.
Returning anything else than true
will not add the attributes.
Related Functions: wp_img_tag_add_width_and_height_attr, wp_img_tag_add_loading_attr, wp_img_tag_add_srcset_and_sizes_attr, wp_iframe_tag_add_loading_attr, wp_image_add_srcset_and_sizes, wp_add_id3_tag_data