Created
November 1, 2018 06:23
-
-
Save dsawardekar/867f06fcca21ee543d38d4c2af8082c3 to your computer and use it in GitHub Desktop.
Disable Gutenberg JS Concatenation on VIP Go
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_filter( 'js_do_concat', 'vip_gutenberg_disable_concat', 100, 1 ); | |
function vip_gutenberg_disable_concat( $handle ) { | |
if ( is_admin() && ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) ) { | |
return false; | |
} | |
return $handle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment