Used By
Used By | Description |
---|---|
wp-includes/media.php: wp_img_tag_add_width_and_height_attr() | Adds |
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.
(bool) The filtered value, defaults to true
.
(string) The HTML img
tag where the attribute should be added.
(string) Additional context about how the function was called or where the img tag is.
(int) The image attachment ID.
File: wp-includes/media.php
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_img_tag_add_width_and_height_attr