Last active
November 10, 2015 10:17
-
-
Save walterebert/657de65163cd4dfad112 to your computer and use it in GitHub Desktop.
WordPress snippet: Advanced Image Compression for Responsive Images
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 | |
// Source: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images | |
// Requires ImageMagick-PHP-Extension | |
function custom_theme_setup() { | |
add_theme_support( 'advanced-image-compression' ); | |
} | |
add_action( 'after_setup_theme', 'custom_theme_setup' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment