Created
January 28, 2016 17:20
-
-
Save SeanChDavis/13f4c173c18855c60c4b to your computer and use it in GitHub Desktop.
Disable WordPress 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 // DO NOT COPY THIS LINE | |
function disable_srcset( $sources ) { | |
return false; | |
} | |
add_filter( 'wp_calculate_image_srcset', 'disable_srcset' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment