Closed therajumandapati closed 5 years ago
@aprokopenko Let me know what you think about this. This is especially helpful when a theme has more than 10 calls to rwd_attachment_image
or get_rwd_attachment_image
, it removes the need to override the value of $tag
in every function call by enabling theme to override it globally, just once.
Hi @mvpspl619,
I don't like adding too many filters, but unfortunately, this is the way WP works. Merging your request
Thank you for merging @aprokopenko. Do you know when this will be released?
Already released in 1.6.4
This PR adds a filter to set the tag for the function
rwd_attachment_image
. It allows theme developers to set a default tag type whether it ispicture
orimg
.Themes can override by doing this: