Created
April 22, 2020 09:58
-
-
Save pelukho/b9b6eb96cfe74057d9f23220a596cb53 to your computer and use it in GitHub Desktop.
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 | |
function remove_noscript_from_footer_autoptimize( $html ) { | |
return preg_replace('~<noscript>(.*)</noscript>~', '', $html); | |
} | |
add_filter('autoptimize_filter_imgopt_lazyload_cssoutput', 'remove_noscript_from_footer_autoptimize'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment