Created
September 11, 2021 14:54
-
-
Save daomapsieucap/7e67aa69c242f774e0cc5bd6654c9acf to your computer and use it in GitHub Desktop.
Remove image srcset
This file contains hidden or 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 | |
| /** | |
| * Remove image srcset | |
| */ | |
| add_filter('wp_calculate_image_srcset', 'dc_remove_srcset'); | |
| function dc_remove_srcset(){ | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment