cache_enabler_convert_webp_attributes filter hook to control what attributes will be converted when converting inline image URLs to WebP. By default src, srcset, and data-* (e.g. data-src and data-srcset) attributes will be converted.
cache_enabler_convert_webp_ignore_query_strings filter hook to indicate whether inline image URLs with query strings should be ignored during WebP conversion. By default inline image URLs with query strings will be ignored.
Add two filter hooks suggested in PR #116:
cache_enabler_convert_webp_attributes
filter hook to control what attributes will be converted when converting inline image URLs to WebP. By defaultsrc
,srcset
, anddata-*
(e.g.data-src
anddata-srcset
) attributes will be converted.cache_enabler_convert_webp_ignore_query_strings
filter hook to indicate whether inline image URLs with query strings should be ignored during WebP conversion. By default inline image URLs with query strings will be ignored.