Created
April 8, 2020 14:52
-
-
Save mgibbs189/30d6435f63bd9b0247306abbfa602b91 to your computer and use it in GitHub Desktop.
FacetWP - Imagify WebP support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add to your (child) theme's functions.php | |
add_filter( 'facetwp_template_html', function( $output, $class ) { | |
$output = \Imagify\Webp\Picture\Display::get_instance()->process_content( $output ); | |
return $output; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment