FacetWP – Imagify WebP support

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// Add to your (child) theme’s functions.php

add_filter( ‘facetwp_template_html’, function( $output, $class ) {
$output = ImagifyWebpPictureDisplay::get_instance()->process_content( $output );
return $output;
}, 10, 2 );
{{/gist}}