This adds a filter tag imagify_process_webp_content that filters given HTML using the webp picture tag display's process_content().
The use case for this is when users or other themes/plugins may add or modify HTML after the template_redirect hook (where Imagify removes images and replaces images with picture tag elements). For example, a plugin may do some page post-processing that gets a WooCommerce image with WC's get_image() so they have the image html tag, but the want to insert it into the page as an imagify picture tag with webp images.
This does not change any functionality other than to make the picture tag replacement into html available to 3rd parties.
This adds a filter tag
imagify_process_webp_content
that filters given HTML using the webp picture tag display'sprocess_content()
.The use case for this is when users or other themes/plugins may add or modify HTML after the
template_redirect
hook (where Imagify removes images and replaces images with picture tag elements). For example, a plugin may do some page post-processing that gets a WooCommerce image with WC'sget_image()
so they have the image html tag, but the want to insert it into the page as an imagify picture tag with webp images.This does not change any functionality other than to make the picture tag replacement into html available to 3rd parties.
Use would be like: